Show / Hide Table of Contents

Class BinaryReaderExtensions

Inheritance
System.Object
BinaryReaderExtensions
Namespace: Eco.Shared.Utils.Binary
Assembly: Eco.Shared.dll
Syntax
public static class BinaryReaderExtensions : Object

Methods

DecodeIntVariableLength(BinaryReader)

Decodes integer encoded using EncodeVariableLength(BinaryWriter, Int32).

Declaration
public static int DecodeIntVariableLength(this BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.Int32

DecodeLongVariableLength(BinaryReader)

Decodes integer encoded using EncodeVariableLength(BinaryWriter, Int64).

Declaration
public static long DecodeLongVariableLength(this BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.Int64

DecodeUIntVariableLength(BinaryReader)

Decodes integer encoded using EncodeVariableLength(BinaryWriter, UInt32).

Declaration
public static uint DecodeUIntVariableLength(this BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.UInt32

DecodeULongVariableLength(BinaryReader)

Decodes integer encoded using EncodeVariableLength(BinaryWriter, UInt64).

Declaration
public static ulong DecodeULongVariableLength(this BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.UInt64

ReadDictionary(BinaryReader)

Reads a string key,value Dictionary from a BinaryReader

Declaration
public static Dictionary<string, string> ReadDictionary(this BinaryReader reader)
Parameters
Type Name Description
System.IO.BinaryReader reader
Returns
Type Description
System.Collections.Generic.Dictionary<System.String, System.String>
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾