hdf_sbuf.h
Description:
Defines functions related to a . The HDF provides data serialization and deserialization capabilities for data transmission between user-mode applications and kernel-mode drivers.
Since:
1.0
HdfSbufWriteBuffer (struct sbuf, const void data, uint32_t writeSize) |
|
HdfSbufWriteUint64 (struct sbuf, uint64_t value) |
|
HdfSbufWriteUint32 (struct sbuf, uint32_t value) |
|
HdfSbufWriteUint16 (struct sbuf, uint16_t value) |
|
HdfSbufWriteUint8 (struct sbuf, uint8_t value) |
|
HdfSbufWriteInt64 (struct sbuf, int64_t value) |
|
HdfSbufWriteInt32 (struct sbuf, int32_t value) |
|
HdfSbufWriteInt8 (struct sbuf, int8_t value) |
|
HdfSbufWriteString (struct sbuf, const char value) |
|
HdfSbufReadBuffer (struct sbuf, const void **data, uint32_t readSize) |
|
HdfSbufReadUint64 (struct sbuf, uint64_t value) |
|
HdfSbufReadUint32 (struct sbuf, uint32_t value) |
|
HdfSbufReadUint16 (struct sbuf, uint16_t value) |
|
HdfSbufReadUint8 (struct sbuf, uint8_t value) |
|
HdfSbufReadInt64 (struct sbuf, int64_t value) |
|
HdfSbufReadInt32 (struct sbuf, int32_t value) |
|
HdfSbufReadInt16 (struct sbuf, int16_t value) |
|
HdfSbufReadInt8 (struct sbuf, int8_t value) |
|
HdfSbufReadString (struct sbuf) |
|
HdfSbufGetData (const struct sbuf) |
|
HdfSbufFlush (struct sbuf) |
|
HdfSbufGetCapacity (const struct sbuf) |
|
HdfSbufGetDataSize (const struct sbuf) |
|
HdfSBufObtain (size_t capacity) |
|
HdfSBufObtainDefaultSize (void) |
Obtains a SBuf instance of the default capacity (256 bytes). |
HdfSBufBind (uintptr_t base, size_t size) |
Creates a SBuf instance with the specified data and size. The pointer to the data stored in the SBuf is released by the caller, and the written data size should not exceed the specified value of size. |
HdfSBufRecycle (struct sbuf) |
|
HdfSBufMove (struct sbuf) |
struct HdfSBuf Creates a SBuf instance with an original SBuf. This function moves the data stored in the original SBuf to the new one without memory copy. |
(const struct HdfSBuf sbuf) |
Creates a SBuf instance with an original SBuf. This function copies the data stored in the original SBuf to the new one. |
HdfSbufTransDataOwnership (struct sbuf) |
Transfers the data ownership to a SBuf. Once the SBuf is released, the bound data memory is also released. This function is used together with HdfSBufBind. |