Table of Contents

Class ChunkBlob

Namespace
WoWLib.Formats
Assembly
WoWLib.dll

An unparsed chunk payload, preserved verbatim for round-trip. Backs chunks wowlib keeps opaque — offset-based (MOTA, MDDL) or undocumented (MPVD, MOMX).

public class ChunkBlob : IDisposable
Inheritance
ChunkBlob
Implements
Inherited Members

Constructors

ChunkBlob()

public ChunkBlob()

ChunkBlob(ChunkBlob)

Copy-construct: a deep copy of other (the C++ copy constructor).

public ChunkBlob(ChunkBlob other)

Parameters

other ChunkBlob

Properties

Empty

Whether the payload holds any bytes.

public bool Empty { get; }

Property Value

bool

Size

The payload size in bytes.

public ulong Size { get; }

Property Value

ulong

Methods

Dispose()

Release the native object now. Optional: the finalizer releases it on collection anyway - dispose (or using) when you want native memory back promptly.

public virtual void Dispose()

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Reference-identity hash (the C++ type has no hash to mirror).

public override int GetHashCode()

Returns

int

Operators

operator ==(ChunkBlob?, ChunkBlob?)

public static bool operator ==(ChunkBlob? l, ChunkBlob? r)

Parameters

l ChunkBlob
r ChunkBlob

Returns

bool

operator !=(ChunkBlob?, ChunkBlob?)

public static bool operator !=(ChunkBlob? l, ChunkBlob? r)

Parameters

l ChunkBlob
r ChunkBlob

Returns

bool