Class BufferPart
This class represents a Buffer Part.
Namespace: Evergine.Framework.Assets.AssetParts
Assembly: Evergine.Framework.dll
Syntax
public class BufferPart : AssetPart
Properties
BufferSize
Gets or sets the buffer size.
Declaration
public int BufferSize { get; set; }
Property Value
Type | Description |
---|---|
int |
DataPtr
Gets or sets the buffer data pointer.
Declaration
public nint DataPtr { get; set; }
Property Value
Type | Description |
---|---|
nint |
Methods
Free()
Frees the buffer resources.
Declaration
public void Free()
Read(BinaryReader)
Reads the buffer data from the specified binary reader.
Declaration
public static BufferPart Read(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The binary reader. |
Returns
Type | Description |
---|---|
BufferPart | The buffer part. |
Write(BinaryWriter)
Writes the sub-asset.
Declaration
public override void Write(BinaryWriter writer)
Parameters
Type | Name | Description |
---|---|---|
BinaryWriter | writer | The stream. |