1
0
mirror of https://github.com/microsoft/DirectXTex synced 2024-11-21 12:00:06 +00:00
4 Blob
Chuck Walbourn edited this page 2022-01-20 17:41:58 -08:00
DirectXTex

The Blob class is a simple container for binary data, typically used as the result for "save to memory" functions.

Methods

  • Initialize: Creates a blob that contains size bytes of data.

  • Release: Releases the memory owned by the blob.

  • GetBufferPointer: Returns a void* pointer to the blob's data memory.

  • GetBufferSize: Returns the size of the blob's data memory in bytes.

  • Trim: Used to reduce the reported size via GetBufferSize. Only succeeds if the new size is less-than-or-equal-to the blob's data memory size.

  • Resize: Used to resize the buffer. Any existing data is copied to the new buffer (or at least as much as will fit).