Class Block
- Namespace
- ValveResourceFormat
- Assembly
- ValveResourceFormat.dll
Represents a block within the resource file.
public abstract class Block
Inheritance
Derived
Inherited Members
Extension Methods
Properties
Offset
Gets or sets the offset to the data.
public uint Offset { get; set; }
Property Value
Resource
Gets the resource this block belongs to.
public Resource? Resource { get; set; }
Property Value
Size
Gets or sets the data size.
public uint Size { get; set; }
Property Value
Type
Gets the block type.
public abstract BlockType Type { get; }
Property Value
Methods
Read(BinaryReader)
Reads the block data from a binary reader.
public abstract void Read(BinaryReader reader)
Parameters
reader
BinaryReader-
The binary reader to read from.
Serialize(Stream)
Writes the binary representation of the object to Stream.
public abstract void Serialize(Stream stream)
Parameters
stream
Stream-
Stream.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
-
A string that represents the current object.
WriteText(IndentedTextWriter)
Writes the correct text dump of the object to IndentedTextWriter.
public abstract void WriteText(IndentedTextWriter writer)
Parameters
writer
IndentedTextWriter-
IndentedTextWriter.