hdf_sbuf.h
Overview
Related Modules:
Description:
Defines functions related to a HdfSBuf. The HDF provides data serialization and deserialization capabilities for data transmission between user-mode applications and kernel-mode drivers.
Since:
1.0
Summary
Data Structures
Defines a HdfSBuf. |
Functions
HdfSbufWriteBuffer (struct HdfSBuf sbuf, const void data, uint32_t writeSize) |
|
HdfSbufWriteUint64 (struct HdfSBuf sbuf, uint64_t value) |
|
HdfSbufWriteUint32 (struct HdfSBuf sbuf, uint32_t value) |
|
HdfSbufWriteUint16 (struct HdfSBuf sbuf, uint16_t value) |
|
HdfSbufWriteUint8 (struct HdfSBuf sbuf, uint8_t value) |
|
HdfSbufWriteInt64 (struct HdfSBuf sbuf, int64_t value) |
|
HdfSbufWriteInt32 (struct HdfSBuf sbuf, int32_t value) |
|
HdfSbufWriteInt16 (struct HdfSBuf sbuf, int16_t value) |
|
HdfSbufWriteInt8 (struct HdfSBuf sbuf, int8_t value) |
|
HdfSbufWriteString (struct HdfSBuf sbuf, const char value) |
|
HdfSbufReadBuffer (struct HdfSBuf sbuf, const void **data, uint32_t readSize) |
|
HdfSbufReadUint64 (struct HdfSBuf sbuf, uint64_t value) |
|
HdfSbufReadUint32 (struct HdfSBuf sbuf, uint32_t value) |
|
HdfSbufReadUint16 (struct HdfSBuf sbuf, uint16_t value) |
|
HdfSbufReadUint8 (struct HdfSBuf sbuf, uint8_t value) |
|
HdfSbufReadInt64 (struct HdfSBuf sbuf, int64_t value) |
|
HdfSbufReadInt32 (struct HdfSBuf sbuf, int32_t value) |
|
HdfSbufReadInt16 (struct HdfSBuf sbuf, int16_t value) |
|
HdfSbufReadInt8 (struct HdfSBuf sbuf, int8_t value) |
|
HdfSbufReadString (struct HdfSBuf sbuf) |
|
HdfSbufGetData (const struct HdfSBuf sbuf) |
|
HdfSbufFlush (struct HdfSBuf sbuf) |
|
HdfSbufGetCapacity (const struct HdfSBuf sbuf) |
|
HdfSbufGetDataSize (const struct HdfSBuf sbuf) |
|
HdfSBufObtain (size_t capacity) |
struct HdfSBuf |
HdfSBufObtainDefaultSize (void) |
struct HdfSBuf Obtains a SBuf instance of the default capacity (256 bytes). |
HdfSBufBind (uintptr_t base, size_t size) |
struct HdfSBuf 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 HdfSBuf sbuf) |
|
HdfSBufMove (struct HdfSBuf 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. |
HdfSBufCopy (const struct HdfSBuf sbuf) |
struct HdfSBuf Creates a SBuf instance with an original SBuf. This function copies the data stored in the original SBuf to the new one. |
HdfSbufTransDataOwnership (struct HdfSBuf 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. |