Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset e3f2765 in mainline for uspace/app/bithenge/blob.h


Ignore:
Timestamp:
2012-08-04T00:56:49Z (9 years ago)
Author:
Sean Bartell <wingedtachikoma@…>
Branches:
lfn, master
Children:
c3437d9
Parents:
0caaaa00
Message:

Bithenge: add repeat without count

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/bithenge/blob.h

    r0caaaa00 re3f2765  
    149149}
    150150
     151/** Check whether the blob is empty.
     152 *
     153 * @memberof bithenge_blob_t
     154 * @param self The blob.
     155 * @param[out] out Holds whether the blob is empty.
     156 * @return EOK on success or an error code from errno.h. */
     157static inline int bithenge_blob_empty(bithenge_blob_t *self, bool *out)
     158{
     159        assert(self);
     160        assert(self->base.blob_ops);
     161        aoff64_t size;
     162        int rc = bithenge_blob_size(self, &size);
     163        *out = size == 0;
     164        return rc;
     165}
     166
    151167/** Cast a blob node to a generic node.
    152168 * @memberof bithenge_blob_t
Note: See TracChangeset for help on using the changeset viewer.