|
| | vec_t () |
| | Construct empty vector. More...
|
| |
| | vec_t (const cvec_t &v1, const cvec_t &v2) |
| | Construct a vector that combines two others. More...
|
| |
| | vec_t (const void *p, size_t l) |
| | Construct a vector from a memory location and a length. More...
|
| |
| | vec_t (const vec_t &v, size_t offset, size_t limit) |
| | Construct a vector from a memory location + offset and a length. More...
|
| |
| const vec_t & | copy_from (const void *p, size_t limit, size_t offset=0) const |
| | Overwrites the data area to which the vector points. More...
|
| |
| vec_t & | copy_from (const cvec_t &v) |
| | Overwrites the data area to which the vector points. More...
|
| |
| vec_t & | copy_from (const cvec_t &v, size_t offset, size_t limit, size_t myoffset=0) |
| | Overwrites the data area to which the vector points. More...
|
| |
| CADDR_T | ptr (int index) const |
| | Return the pointer from the {pointer, length} pair at the given index. More...
|
| |
| size_t | len (int index) const |
| | Return the length from the {pointer, length} pair at the given index. More...
|
| |
| | cvec_t () |
| |
| | cvec_t (const cvec_t &v1, const cvec_t &v2) |
| |
| | cvec_t (const void *p, size_t l) |
| |
| | cvec_t (const cvec_t &v, size_t offset, size_t limit) |
| |
| | ~cvec_t () |
| |
| void | split (size_t l1, cvec_t &v1, cvec_t &v2) const |
| |
| cvec_t & | put (const cvec_t &v, size_t offset, size_t nbytes) |
| |
| cvec_t & | put (const void *p, size_t l) |
| | append { p, l } pair to this vector. More...
|
| |
| cvec_t & | put (const cvec_t &v) |
| | append { p, l } pairs from v to this vector. More...
|
| |
| cvec_t & | put (const w_keystr_t &keystr) |
| |
| cvec_t & | put (const w_keystr_t &keystr, size_t offset, size_t nbytes) |
| |
| cvec_t & | reset () |
| | Clear this vector. More...
|
| |
| cvec_t & | set (const cvec_t &v1, const cvec_t &v2) |
| | reset, then copy over all {p,l} pairs from v1 and v2 More...
|
| |
| cvec_t & | set (const cvec_t &v) |
| | reset, then copy over all {p,l} pairs from v More...
|
| |
| cvec_t & | set (const void *p, size_t l) |
| | reset, then install {p,l} pair More...
|
| |
| cvec_t & | set (const cvec_t &v, size_t offset, size_t limit) |
| |
| size_t | size () const |
| | returns # bytes this vector references More...
|
| |
| size_t | copy_to (void *p, size_t limit=0x7fffffff) const |
| |
| size_t | copy_to (std::basic_string< unsigned char > &buffer, size_t limit=0x7fffffff) const |
| |
| int | cmp (const cvec_t &v, size_t *common_size=0) const |
| |
| int | cmp (const void *s, size_t len) const |
| |
| int | count () const |
| | return number of {p,l} pairs More...
|
| |
| int | checksum () const |
| |
| void | calc_kvl (uint32_t &h) const |
| |
| void | init () |
| |
| void | vecdelparts () |
| |
| void | delparts () |
| |
| bool | is_pos_inf () const |
| |
| bool | is_neg_inf () const |
| |
| bool | is_null () const |
| |
| bool | is_zvec () const |
| |
Vector: a set of {pointer,length} pairs for memory manipulation.
This class is used throughout the storage manager and in its API for copy-in and copy-out.