Class ForeignStorageBuffer¶
-
class
ForeignStorageBuffer
: public Data_Namespace::AbstractBuffer¶ Public Functions
-
ForeignStorageBuffer
(const ChunkKey &chunk_key, PersistentForeignStorageInterface *persistent_foreign_storage)¶
-
void
read
(int8_t *const dst, const size_t numBytes, const size_t offset = 0, const Data_Namespace::MemoryLevel dstBufferType = Data_Namespace::CPU_LEVEL, const int dstDeviceId = -1)¶
-
void
append
(int8_t *src, const size_t numBytes, const Data_Namespace::MemoryLevel srcBufferType = Data_Namespace::CPU_LEVEL, const int deviceId = -1)¶
-
Data_Namespace::MemoryLevel
getType
() const¶
-
std::vector<int8_t>
moveBuffer
()¶
-
void
write
(int8_t *src, const size_t numBytes, const size_t offset = 0, const Data_Namespace::MemoryLevel srcBufferType = Data_Namespace::CPU_LEVEL, const int srcDeviceId = -1)¶
-
void
reserve
(size_t numBytes)¶
-
int8_t *
getMemoryPtr
()¶
-
size_t
pageCount
() const¶
-
size_t
pageSize
() const¶
-
size_t
reservedSize
() const¶
-
int8_t *
tryZeroCopy
(const size_t numBytes)¶
Private Members
-
const ChunkKey
chunk_key_
¶
-
PersistentForeignStorageInterface *
persistent_foreign_storage_
¶
-
std::vector<int8_t>
buff_
¶
-