Class DynamicMemoryStream.PropertyNames
Provides property names for DynamicMemoryStream properties
public sealed class DynamicMemoryStream.PropertyNames : Stream.PropertyNames
- Inheritance
-
DynamicMemoryStream.PropertyNames
- Inherited Members
Fields
ChunkSizeNumber
The name of a property that holds the chunk size used for memory allocations
public const string ChunkSizeNumber = "SDL_PROP_IOSTREAM_DYNAMIC_CHUNKSIZE_NUMBER"
Field Value
Remarks
Memory will be allocated in multiples of this size, defaulting to 1024.
- See Also
MemoryPointer
The name of a property that holds the pointer to the internal memory of the stream
public const string MemoryPointer = "SDL_PROP_IOSTREAM_DYNAMIC_MEMORY_POINTER"
Field Value
Remarks
The property can be set to Zero (null) to transfer ownership of the memory to the application, which should free the memory with Free(void*).
If this is done, the next operation on the stream must be TryClose() or better Dispose().
For a safer way to transfer ownership of the memory, use TryGetMemoryManagerAndDispose(out NativeMemoryManager?) instead.
- See Also