upipe/uref_block.h header reference

Upipe wrapper for block ubuf and uref More

Header inclusion  

Members  

Functions  

Description  

Upipe wrapper for block ubuf and uref

Members detail  

#define _UPIPE_UREF_BLOCK_H_  

This macro is declared in upipe/uref_block.h source file, line 31.

struct uref * uref_block_alloc(struct uref_mgr *uref_mgr, struct ubuf_mgr *ubuf_mgr, int size)  

This function is declared in upipe/uref_block.h source file, line 61.

This function returns a new uref pointing to a new ubuf pointing to a block. This is equivalent to the two operations sequentially, and is a shortcut.

Parameter list:

  • uref_mgr: management structure for this uref type
  • ubuf_mgr: management structure for this ubuf type
  • size: size of the buffer

The return value is pointer to uref or NULL in case of failure

int uref_block_append(struct uref *uref, struct ubuf *append)  

This function is declared in upipe/uref_block.h source file, line 130.

See also ubuf_block_append.

int uref_block_cmp_header_size(struct uref *uref1, struct uref *uref2)  

This function is declared in upipe/uref_block.h source file, line 48.

This function compares the global headers size attribute in two urefs.

Parameter list:

  • uref1: pointer to the first uref
  • uref2: pointer to the second uref

The return value is 0 if both attributes are absent or identical

int uref_block_compare(struct uref *uref, int offset, struct uref *uref_small)  

This function is declared in upipe/uref_block.h source file, line 292.

See also ubuf_block_compare.

void uref_block_copy_end(struct uref *uref, struct uref *uref_src)  

This function is declared in upipe/uref_block.h source file, line 47.

This function copies the end of logical block attribute from an uref to another.

Parameter list:

  • uref: pointer to the uref
  • uref_src: pointer to the source uref

The return value is an error code

int uref_block_copy_header_size(struct uref *uref, struct uref *uref_src)  

This function is declared in upipe/uref_block.h source file, line 48.

This function copies the global headers size attribute from an uref to another.

Parameter list:

  • uref: pointer to the uref
  • uref_src: pointer to the source uref

The return value is an error code

void uref_block_copy_start(struct uref *uref, struct uref *uref_src)  

This function is declared in upipe/uref_block.h source file, line 46.

This function copies the start of logical block attribute from an uref to another.

Parameter list:

  • uref: pointer to the uref
  • uref_src: pointer to the source uref

The return value is an error code

int uref_block_delete(struct uref *uref, int offset, int size)  

This function is declared in upipe/uref_block.h source file, line 138.

See also ubuf_block_delete.

void uref_block_delete_end(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 47.

This function deletes a end of logical block attribute from a uref.

Parameter list:

  • uref: pointer to the uref

int uref_block_delete_header_size(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 48.

This function deletes the global headers size attribute of a uref.

Parameter list:

  • uref: pointer to the uref

The return value is an error code

void uref_block_delete_start(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 46.

This function deletes a start of logical block attribute from a uref.

Parameter list:

  • uref: pointer to the uref

int uref_block_equal(struct uref *uref1, struct uref *uref2)  

This function is declared in upipe/uref_block.h source file, line 300.

See also ubuf_block_equal.

int uref_block_extract(struct uref *uref, int offset, int size, uint8_t *buffer)  

This function is declared in upipe/uref_block.h source file, line 226.

See also ubuf_block_extract.

int uref_block_extract_bits(struct uref *uref, int offset, int size, struct ubits *bw)  

This function is declared in upipe/uref_block.h source file, line 235.

See also ubuf_block_extract_bits.

int uref_block_find(struct uref *uref, size_t *offset_p, unsigned int nb_octets, ...)  

This function is declared in upipe/uref_block.h source file, line 336.

See also ubuf_block_find.

int uref_block_find_va(struct uref *uref, size_t *offset_p, unsigned int nb_octets, va_list args)  

This function is declared in upipe/uref_block.h source file, line 327.

See also ubuf_block_find_va.

int uref_block_get_end(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 47.

This function returns the presence of a end of logical block attribute in a uref.

Parameter list:

  • uref: pointer to the uref

The return value is an error code

int uref_block_get_header_size(struct uref *uref, uint64_t *p)  

This function is declared in upipe/uref_block.h source file, line 48.

This function returns the global headers size attribute of a uref.

Parameter list:

  • uref: pointer to the uref
  • p: pointer to the retrieved value (modified during execution)

The return value is an error code

int uref_block_get_start(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 46.

This function returns the presence of a start of logical block attribute in a uref.

Parameter list:

  • uref: pointer to the uref

The return value is an error code

int uref_block_insert(struct uref *uref, int offset, struct ubuf *insert)  

This function is declared in upipe/uref_block.h source file, line 122.

See also ubuf_block_insert.

int uref_block_iovec_count(struct uref *uref, int offset, int size)  

This function is declared in upipe/uref_block.h source file, line 244.

See also ubuf_block_iovec_count.

int uref_block_iovec_read(struct uref *uref, int offset, int size, struct iovec *iovecs)  

This function is declared in upipe/uref_block.h source file, line 253.

See also ubuf_block_iovec_read.

int uref_block_iovec_unmap(struct uref *uref, int offset, int size, struct iovec *iovecs)  

This function is declared in upipe/uref_block.h source file, line 263.

See also ubuf_block_iovec_unmap.

int uref_block_match(struct uref *uref, const uint8_t *filter, const uint8_t *mask, size_t size)  

This function is declared in upipe/uref_block.h source file, line 309.

See also ubuf_block_match.

int uref_block_match_header_size(struct uref *uref, uint64_t min, uint64_t max)  

This function is declared in upipe/uref_block.h source file, line 48.

This function compares the global headers size attribute to given values.

Parameter list:

  • uref: pointer to the uref
  • min: minimum value
  • max: maximum value

The return value is an error code

int uref_block_merge(struct uref *uref, struct ubuf_mgr *ubuf_mgr, int skip, int new_size)  

This function is declared in upipe/uref_block.h source file, line 283.

This function allocates a new ubuf of size new_size, and copies part of the old (possibly segemented) ubuf to the new one, switches the ubufs and frees the old one.

Parameter list:

  • uref: pointer to uref structure
  • ubuf_mgr: management structure for the new ubuf
  • skip: number of octets to skip at the beginning of the buffer (if < 0, extend buffer upwards)
  • new_size: size of the buffer space wanted, in octets, or -1 for the end of the block

The return value is an error code

const uint8_t * uref_block_peek(struct uref *uref, int offset, int size, uint8_t *buffer)  

This function is declared in upipe/uref_block.h source file, line 207.

See also ubuf_block_peek.

int uref_block_peek_unmap(struct uref *uref, int offset, uint8_t *buffer, const uint8_t *read_buffer)  

This function is declared in upipe/uref_block.h source file, line 217.

See also ubuf_block_peek_unmap.

int uref_block_prepend(struct uref *uref, int prepend)  

This function is declared in upipe/uref_block.h source file, line 162.

See also ubuf_block_prepend.

int uref_block_read(struct uref *uref, int offset, int *size_p, const uint8_t **buffer_p)  

This function is declared in upipe/uref_block.h source file, line 96.

See also ubuf_block_read.

int uref_block_resize(struct uref *uref, int skip, int new_size)  

This function is declared in upipe/uref_block.h source file, line 154.

See also ubuf_block_resize.

int uref_block_scan(struct uref *uref, size_t *offset_p, uint8_t word)  

This function is declared in upipe/uref_block.h source file, line 318.

See also ubuf_block_scan.

void uref_block_set_end(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 47.

This function sets a end of logical block attribute in a uref.

Parameter list:

  • uref: pointer to the uref

int uref_block_set_header_size(struct uref *uref, uint64_t v)  

This function is declared in upipe/uref_block.h source file, line 48.

This function sets the global headers size attribute of a uref.

Parameter list:

  • uref: pointer to the uref
  • v: value to set

The return value is an error code

void uref_block_set_start(struct uref *uref)  

This function is declared in upipe/uref_block.h source file, line 46.

This function sets a start of logical block attribute in a uref.

Parameter list:

  • uref: pointer to the uref

int uref_block_size(struct uref *uref, size_t *size_p)  

This function is declared in upipe/uref_block.h source file, line 78.

See also ubuf_block_size.

int uref_block_size_linear(struct uref *uref, int offset, size_t *size_p)  

This function is declared in upipe/uref_block.h source file, line 87.

See also ubuf_block_size_linear.

struct uref * uref_block_splice(struct uref *uref, int offset, int size)  

This function is declared in upipe/uref_block.h source file, line 171.

See also ubuf_block_splice.

struct uref * uref_block_split(struct uref *uref, int offset)  

This function is declared in upipe/uref_block.h source file, line 188.

See also ubuf_block_split.

int uref_block_truncate(struct uref *uref, int offset)  

This function is declared in upipe/uref_block.h source file, line 146.

See also ubuf_block_truncate.

int uref_block_unmap(struct uref *uref, int offset)  

This function is declared in upipe/uref_block.h source file, line 113.

See also ubuf_block_unmap.

int uref_block_write(struct uref *uref, int offset, int *size_p, uint8_t **buffer_p)  

This function is declared in upipe/uref_block.h source file, line 105.

See also ubuf_block_write.

Valid XHTML 1.0 StrictGenerated by cmassiot on Fri Feb 2 23:57:19 2018 using MkDoc