Class BinaryKV1
Namespace: ValveResourceFormat.ResourceTypes
Assembly: ValveResourceFormat.dll
Represents a binary KeyValues1 data block.
csharp
public class BinaryKV1 : BlockInheritance
Inherited Members
Block.Type, Block.Offset, Block.Size, Block.Resource, Block.Read(BinaryReader), Block.ToString(), Block.WriteText(IndentedTextWriter), Block.Serialize(Stream)
Extension Methods
ResourceDataExtensions.AsKeyValueCollection(Block)
Fields
MAGIC
The magic number for binary KeyValues1 format (VBKV).
csharp
public const int MAGIC = 1447772758Field Value
Properties
KeyValues
Gets the deserialized KeyValues data.
csharp
public KVDocument? KeyValues { get; }Property Value
KVDocument?
Type
Gets the block type.
csharp
public override BlockType Type { get; }Property Value
Methods
Read(BinaryReader)
Reads the block data from a binary reader.
csharp
public override void Read(BinaryReader reader)Parameters
reader BinaryReader
The binary reader to read from.
Serialize(Stream)
Writes the binary representation of the object to Stream.
csharp
public override void Serialize(Stream stream)Parameters
stream Stream
Stream.
WriteText(IndentedTextWriter)
Writes the correct text dump of the object to .
csharp
public override void WriteText(IndentedTextWriter writer)Parameters
writer IndentedTextWriter
Remarks
Converts the binary KeyValues to text format and writes it.

