Class BaseChunk
Base class for all chunks.
Implements
Inherited Members
Namespace: UnityEditor.U2D.Aseprite
Assembly: Unity.2D.Aseprite.Editor.dll
Syntax
public abstract class BaseChunk : IDisposable
Constructors
BaseChunk(uint)
Constructor.
Declaration
protected BaseChunk(uint chunkSize)
Parameters
Type | Name | Description |
---|---|---|
uint | chunkSize | The size of the chunk in bytes. |
Fields
m_ChunkSize
The size of the chunk in bytes.
Declaration
protected readonly uint m_ChunkSize
Field Value
Type | Description |
---|---|
uint |
Properties
chunkType
The type of the chunk.
Declaration
public virtual ChunkTypes chunkType { get; }
Property Value
Type | Description |
---|---|
ChunkTypes |
Methods
Dispose()
Implement this method to dispose of the chunk data.
Declaration
public virtual void Dispose()
InternalRead(BinaryReader)
Implement this method to read the chunk data.
Declaration
protected abstract void InternalRead(BinaryReader reader)
Parameters
Type | Name | Description |
---|---|---|
BinaryReader | reader | The active binary reader of the file. |