Name |
Description |
append
|
append overloads
|
appendBufferIfValid
|
appendBufferIfValid overloads
|
appendDataBufferIfValid
|
appendDataBufferIfValid overloads
|
appendWithCapacityBuffer
|
Append the specified length bytes from the specified source address to the specified dest. Use the existing capacity in dest first, followed by that in the buffer, and finally allocate from the blob buffer factory associated with the dest. Load any unused space into the specified buffer. The behavior is undefined unless the range [source, source + length)] represents a readable sequence of memory. |
asciiDump
|
asciiDump overloads
|
compare
|
Compare, lexicographically, the data (data length and character data values at each index position) stored by the specified a and b blobs. Return 0 if the data stored by a is lexicographically equal to the data stored by b, a negative value if a is lexicographically less than b, and a positive value if a is lexicographically greater than b. |
copy
|
copy overloads
|
erase
|
Erase the specified length bytes starting at the specified offset from the specified blob. The behavior is undefined unless offset >= 0, length >= 0, and offset + length <= blob‐>length(). |
findBufferIndexAndOffset
|
Return a value, designated here as p, such that for the specified blob, blob.buffer(p.first) is the buffer that contains the byte at the specified position in blob, and p.second is the offset corresponding to position within said buffer. The behavior of this function is undefined unless 0 <= position, 0 < blob.totalSize(), and position < blob.totalSize(). Note that (1) subsequent changes to blob may invalidate the result of this function, and (2) p.first never indicates a zero‐size buffer. |
getContiguousDataBuffer
|
Obtain contiguous storage for at least the specified addLength bytes in the specified blob at position blob‐>length(), and then grow blob‐>length() by addLength. If, upon entry, such storage does not exist in blob, first trim the final data buffer, if any, and insert a new buffer obtained from the specified factory. Return a pointer to the beginning of the storage obtained. The behavior of this function is undefined unless 0 < addLength, and factory‐>allocate(), if called, yields a block of memory of a size at least as large as addLength. |
getContiguousRangeOrCopy
|
Return the address of the byte at the specified position in the specified srcBlob, if that address is aligned to the optionally specified alignment and the specified length bytes are stored contiguously; otherwise, copy length bytes to the specified buffer dstBuffer, and return dstBuffer. If alignment is not specified, none is enforced. (An address is aligned to A if, when converted to an integral value a, a & (A ‐ 1) is 0.) The behavior of this function is undefined unless 0 < length, 0 <= position, alignment is a power of two, dstBuffer is aligned as required, dstBuffer has room for length bytes, and position <= srcBlob.totalSize() ‐ length. |
hexDump
|
hexDump overloads
|
insert
|
insert overloads
|
insertBufferIfValid
|
insertBufferIfValid overloads
|
padToAlignment
|
Append padding bytes to the specified dest so that its resulting length is an integer multiple of the specified alignment. Optionally specify fillChar with which the padding is to be filled. If fillChar is not specified, a 0 byte will be used. The behavior is undefined unless alignment is a power of 2, and less than or equal to 64. |
prependDataBufferIfValid
|
prependDataBufferIfValid overloads
|
prependWithCapacityBuffer
|
Prepend the specified length bytes from the specified source address to the specified dest. Use the existing capacity in dest first if 0 == dest‐>length(), followed by that in the buffer, and finally allocate from the blob buffer factory associated with the dest. Load any unused space into the specified buffer. The behavior is undefined unless the range [source, source + length)] represents a readable sequence of memory. |
read
|
Read the specified numBytes from the specified stream and load it into the specified dest, and return a reference to the modifiable stream. |
write
|
write overloads
|