Table of Contents

Class Buffer

Namespace
KSP.Networking.MP.Utils
Assembly
Assembly-CSharp.dll
public class Buffer : IDisposable
Inheritance
Buffer
Implements
Inherited Members
Extension Methods

Constructors

Buffer(Buffer)

public Buffer(Buffer src)

Parameters

src Buffer

Buffer(byte[], int, int, int)

public Buffer(byte[] byteArray, int byteArrayAllocSize, int numBytes = 0, int position = 0)

Parameters

byteArray byte[]
byteArrayAllocSize int
numBytes int
position int

Buffer(int, int, int)

public Buffer(int allocInitialSize = 1024, int allocGrowBlockSize = 1024, int allocMaxSize = -1)

Parameters

allocInitialSize int
allocGrowBlockSize int
allocMaxSize int

Fields

DEFAULT_ALLOC_GROW_BLOCK_SIZE

public const int DEFAULT_ALLOC_GROW_BLOCK_SIZE = 1024

Field Value

int

DEFAULT_ALLOC_INITIAL_SIZE

public const int DEFAULT_ALLOC_INITIAL_SIZE = 1024

Field Value

int

DEFAULT_ALLOC_MAX_SIZE

public const int DEFAULT_ALLOC_MAX_SIZE = -1

Field Value

int

DEFAULT_ERROR_AS_WARNING

public const bool DEFAULT_ERROR_AS_WARNING = false

Field Value

bool

NEW_LINE_STRING

public static string NEW_LINE_STRING

Field Value

string

NEW_LINE_STRING_MAC_UNIX

public const string NEW_LINE_STRING_MAC_UNIX = "\n"

Field Value

string

NEW_LINE_STRING_PC

public const string NEW_LINE_STRING_PC = "\r\n"

Field Value

string

VAR_LENGTH_UINT64_CONTINUE_BIT_POSITION

public const int VAR_LENGTH_UINT64_CONTINUE_BIT_POSITION = 7

Field Value

int

VAR_LENGTH_UINT64_CONTINUE_FLAG

public const byte VAR_LENGTH_UINT64_CONTINUE_FLAG = 128

Field Value

byte

VAR_LENGTH_UINT64_DATA_BIT_MASK

public const byte VAR_LENGTH_UINT64_DATA_BIT_MASK = 127

Field Value

byte

gNewLineStringArray

public static string[] gNewLineStringArray

Field Value

string[]

gWhitespaceByteArray

public static byte[] gWhitespaceByteArray

Field Value

byte[]

Properties

AllocGrowBlockSize

public int AllocGrowBlockSize { get; }

Property Value

int

AllocInitialSize

public int AllocInitialSize { get; }

Property Value

int

AllocMaxSize

public int AllocMaxSize { get; }

Property Value

int

BufferCachePool

public BufferCachePool BufferCachePool { get; }

Property Value

BufferCachePool

ByteArray

public byte[] ByteArray { get; }

Property Value

byte[]

ByteArrayAllocSize

public int ByteArrayAllocSize { get; }

Property Value

int

ErrorAsWarning

public bool ErrorAsWarning { get; }

Property Value

bool

ErrorFlag

public ErrorFlag ErrorFlag { get; }

Property Value

ErrorFlag

ErrorString

public string ErrorString { get; }

Property Value

string

IsEOB

public bool IsEOB { get; }

Property Value

bool

IsErrorFlagSet

public bool IsErrorFlagSet { get; }

Property Value

bool

NumBytes

public int NumBytes { get; }

Property Value

int

NumBytesLeftToRead

public int NumBytesLeftToRead { get; }

Property Value

int

Position

public int Position { get; }

Property Value

int

UniqueIdString

public string UniqueIdString { get; }

Property Value

string

Methods

CanRead()

public bool CanRead()

Returns

bool

CanRead(int)

public bool CanRead(int numBytes)

Parameters

numBytes int

Returns

bool

ClearErrorFlag()

public void ClearErrorFlag()

ConsumeDataFromFrontOfBuffer(int)

public bool ConsumeDataFromFrontOfBuffer(int numBytesIn)

Parameters

numBytesIn int

Returns

bool

Dispose()

public void Dispose()

Empty(bool)

public void Empty(bool freeBuffer = false)

Parameters

freeBuffer bool

FindOffsetOfNextMatchingByte(byte)

public int FindOffsetOfNextMatchingByte(byte byteIn)

Parameters

byteIn byte

Returns

int

FindOffsetOfNextMatchingByteInArray(byte[])

public int FindOffsetOfNextMatchingByteInArray(byte[] byteArrayIn)

Parameters

byteArrayIn byte[]

Returns

int

FindOffsetOfNextMatchingStringInArray(string[], ref string)

public int FindOffsetOfNextMatchingStringInArray(string[] stringArrayIn, ref string strFoundRefIn)

Parameters

stringArrayIn string[]
strFoundRefIn string

Returns

int

FindOffsetOfNextNotMatchingByteInArray(byte[])

public int FindOffsetOfNextNotMatchingByteInArray(byte[] byteArrayIn)

Parameters

byteArrayIn byte[]

Returns

int

GetByteArrayAsUTF8String()

public string GetByteArrayAsUTF8String()

Returns

string

GetByteArrayAsUTF8String(int, int)

public string GetByteArrayAsUTF8String(int index, int numBytes)

Parameters

index int
numBytes int

Returns

string

GetVarLengthedUInt64NumBytesNeeded(ulong)

public static int GetVarLengthedUInt64NumBytesNeeded(ulong val)

Parameters

val ulong

Returns

int

InitDynamic(Buffer)

public void InitDynamic(Buffer src)

Parameters

src Buffer

InitDynamic(int, int, int)

public void InitDynamic(int allocInitialSize = 1024, int allocGrowBlockSize = 1024, int allocMaxSize = -1)

Parameters

allocInitialSize int
allocGrowBlockSize int
allocMaxSize int

InitStatic(byte[], int, int, int)

public void InitStatic(byte[] byteArray, int byteArrayAllocSize, int numBytes = 0, int position = 0)

Parameters

byteArray byte[]
byteArrayAllocSize int
numBytes int
position int

IsDynamic()

public bool IsDynamic()

Returns

bool

IsStatic()

public bool IsStatic()

Returns

bool

Load(string)

public bool Load(string fileName)

Parameters

fileName string

Returns

bool

MatchLiteralStringAtIndex(int, string, bool)

public bool MatchLiteralStringAtIndex(int indexIn, string stringIn, bool caseSensitiveIn = true)

Parameters

indexIn int
stringIn string
caseSensitiveIn bool

Returns

bool

PeekBool(ref bool)

public bool PeekBool(ref bool returnValueRefIn)

Parameters

returnValueRefIn bool

Returns

bool

PeekBoolFromIndex(int, ref bool)

public bool PeekBoolFromIndex(int indexIn, ref bool returnValueRefIn)

Parameters

indexIn int
returnValueRefIn bool

Returns

bool

PeekByte(ref byte)

public bool PeekByte(ref byte returnValueRefIn)

Parameters

returnValueRefIn byte

Returns

bool

PeekByteFromIndex(int, ref byte)

public bool PeekByteFromIndex(int indexIn, ref byte returnValueRefIn)

Parameters

indexIn int
returnValueRefIn byte

Returns

bool

PeekChar(ref char)

public bool PeekChar(ref char returnValueRefIn)

Parameters

returnValueRefIn char

Returns

bool

PeekData(byte[], int, int)

public bool PeekData(byte[] destByteArrayIn, int startingPositionInDestByteArrayIn, int numBytesToReadIn)

Parameters

destByteArrayIn byte[]
startingPositionInDestByteArrayIn int
numBytesToReadIn int

Returns

bool

PeekDataFromIndex(int, byte[], int, int)

public bool PeekDataFromIndex(int indexIn, byte[] destByteArrayIn, int startingPositionInDestByteArrayIn, int numBytesToReadIn)

Parameters

indexIn int
destByteArrayIn byte[]
startingPositionInDestByteArrayIn int
numBytesToReadIn int

Returns

bool

PeekDouble(ref double)

public bool PeekDouble(ref double returnValueRefIn)

Parameters

returnValueRefIn double

Returns

bool

PeekDoubleFromIndex(int, ref double)

public bool PeekDoubleFromIndex(int indexIn, ref double returnValueRefIn)

Parameters

indexIn int
returnValueRefIn double

Returns

bool

PeekFloat(ref float)

public bool PeekFloat(ref float returnValueRefIn)

Parameters

returnValueRefIn float

Returns

bool

PeekFloatFromIndex(int, ref float)

public bool PeekFloatFromIndex(int indexIn, ref float returnValueRefIn)

Parameters

indexIn int
returnValueRefIn float

Returns

bool

PeekInt16(ref short)

public bool PeekInt16(ref short returnValueRefIn)

Parameters

returnValueRefIn short

Returns

bool

PeekInt16FromIndex(int, ref short)

public bool PeekInt16FromIndex(int indexIn, ref short returnValueRefIn)

Parameters

indexIn int
returnValueRefIn short

Returns

bool

PeekInt32(ref int)

public bool PeekInt32(ref int returnValueRefIn)

Parameters

returnValueRefIn int

Returns

bool

PeekInt32FromIndex(int, ref int)

public bool PeekInt32FromIndex(int indexIn, ref int returnValueRefIn)

Parameters

indexIn int
returnValueRefIn int

Returns

bool

PeekInt64(ref long)

public bool PeekInt64(ref long returnValueRefIn)

Parameters

returnValueRefIn long

Returns

bool

PeekInt64FromIndex(int, ref long)

public bool PeekInt64FromIndex(int indexIn, ref long returnValueRefIn)

Parameters

indexIn int
returnValueRefIn long

Returns

bool

PeekLine(ref string)

public bool PeekLine(ref string returnValueRefIn)

Parameters

returnValueRefIn string

Returns

bool

PeekLineFromIndex(int, ref string)

public bool PeekLineFromIndex(int indexIn, ref string returnValueRefIn)

Parameters

indexIn int
returnValueRefIn string

Returns

bool

PeekNonWhitespace(ref string)

public bool PeekNonWhitespace(ref string returnValueRefIn)

Parameters

returnValueRefIn string

Returns

bool

PeekNonWhitespaceFromIndex(int, ref string)

public bool PeekNonWhitespaceFromIndex(int indexIn, ref string returnValueRefIn)

Parameters

indexIn int
returnValueRefIn string

Returns

bool

PeekSByte(ref sbyte)

public bool PeekSByte(ref sbyte returnValueRefIn)

Parameters

returnValueRefIn sbyte

Returns

bool

PeekSByteFromIndex(int, ref sbyte)

public bool PeekSByteFromIndex(int indexIn, ref sbyte returnValueRefIn)

Parameters

indexIn int
returnValueRefIn sbyte

Returns

bool

PeekString(int, ref string)

public bool PeekString(int numBytesIn, ref string returnValueRefIn)

Parameters

numBytesIn int
returnValueRefIn string

Returns

bool

PeekStringAndNull(ref string)

public bool PeekStringAndNull(ref string returnValueRefIn)

Parameters

returnValueRefIn string

Returns

bool

PeekStringAndNullFromIndex(int, ref string)

public bool PeekStringAndNullFromIndex(int indexIn, ref string returnValueRefIn)

Parameters

indexIn int
returnValueRefIn string

Returns

bool

PeekStringFromIndex(int, int, ref string)

public bool PeekStringFromIndex(int indexIn, int numBytesIn, ref string returnValueRefIn)

Parameters

indexIn int
numBytesIn int
returnValueRefIn string

Returns

bool

PeekUInt16(ref ushort)

public bool PeekUInt16(ref ushort returnValueRefIn)

Parameters

returnValueRefIn ushort

Returns

bool

PeekUInt16FromIndex(int, ref ushort)

public bool PeekUInt16FromIndex(int indexIn, ref ushort returnValueRefIn)

Parameters

indexIn int
returnValueRefIn ushort

Returns

bool

PeekUInt32(ref uint)

public bool PeekUInt32(ref uint returnValueRefIn)

Parameters

returnValueRefIn uint

Returns

bool

PeekUInt32FromIndex(int, ref uint)

public bool PeekUInt32FromIndex(int indexIn, ref uint returnValueRefIn)

Parameters

indexIn int
returnValueRefIn uint

Returns

bool

PeekUInt64(ref ulong)

public bool PeekUInt64(ref ulong returnValueRefIn)

Parameters

returnValueRefIn ulong

Returns

bool

PeekUInt64FromIndex(int, ref ulong)

public bool PeekUInt64FromIndex(int indexIn, ref ulong returnValueRefIn)

Parameters

indexIn int
returnValueRefIn ulong

Returns

bool

PeekWhitespace(ref string)

public bool PeekWhitespace(ref string returnValueRefIn)

Parameters

returnValueRefIn string

Returns

bool

PeekWhitespaceFromIndex(int, ref string)

public bool PeekWhitespaceFromIndex(int indexIn, ref string returnValueRefIn)

Parameters

indexIn int
returnValueRefIn string

Returns

bool

ReadBool()

public bool ReadBool()

Returns

bool

ReadBoolFromIndex(int)

public bool ReadBoolFromIndex(int indexIn)

Parameters

indexIn int

Returns

bool

ReadByte()

public byte ReadByte()

Returns

byte

ReadByteArrayOrNull()

public byte[] ReadByteArrayOrNull()

Returns

byte[]

ReadByteFromIndex(int)

public byte ReadByteFromIndex(int indexIn)

Parameters

indexIn int

Returns

byte

ReadChar()

public char ReadChar()

Returns

char

ReadCharFromIndex(int)

public char ReadCharFromIndex(int indexIn)

Parameters

indexIn int

Returns

char

ReadData(Buffer, int)

public bool ReadData(Buffer bufferDestIn, int numBytesToReadIn)

Parameters

bufferDestIn Buffer
numBytesToReadIn int

Returns

bool

ReadData(byte[], int, int)

public bool ReadData(byte[] destByteArrayIn, int startingPositionInDestByteArrayIn, int numBytesToReadIn)

Parameters

destByteArrayIn byte[]
startingPositionInDestByteArrayIn int
numBytesToReadIn int

Returns

bool

ReadDataFromIndex(int, byte[], int, int)

public bool ReadDataFromIndex(int indexIn, byte[] destByteArrayIn, int startingPostionInDestByteArrayIn, int numBytesToReadIn)

Parameters

indexIn int
destByteArrayIn byte[]
startingPostionInDestByteArrayIn int
numBytesToReadIn int

Returns

bool

ReadDouble()

public double ReadDouble()

Returns

double

ReadDoubleFromIndex(int)

public double ReadDoubleFromIndex(int indexIn)

Parameters

indexIn int

Returns

double

ReadFloat()

public float ReadFloat()

Returns

float

ReadFloatFromIndex(int)

public float ReadFloatFromIndex(int indexIn)

Parameters

indexIn int

Returns

float

ReadIPEndPointOrNull()

public IPEndPoint ReadIPEndPointOrNull()

Returns

IPEndPoint

ReadIPEndPointOrNullFromIndex(int)

public IPEndPoint ReadIPEndPointOrNullFromIndex(int indexIn)

Parameters

indexIn int

Returns

IPEndPoint

ReadInt16()

public short ReadInt16()

Returns

short

ReadInt16FromIndex(int)

public short ReadInt16FromIndex(int indexIn)

Parameters

indexIn int

Returns

short

ReadInt32()

public int ReadInt32()

Returns

int

ReadInt32FromIndex(int)

public int ReadInt32FromIndex(int indexIn)

Parameters

indexIn int

Returns

int

ReadInt64()

public long ReadInt64()

Returns

long

ReadInt64FromIndex(int)

public long ReadInt64FromIndex(int indexIn)

Parameters

indexIn int

Returns

long

ReadLine()

public string ReadLine()

Returns

string

ReadLineFromIndex(int)

public string ReadLineFromIndex(int indexIn)

Parameters

indexIn int

Returns

string

ReadNonWhitespace()

public string ReadNonWhitespace()

Returns

string

ReadNonWhitespaceFromIndex(int)

public string ReadNonWhitespaceFromIndex(int indexIn)

Parameters

indexIn int

Returns

string

ReadSByte()

public sbyte ReadSByte()

Returns

sbyte

ReadSByteFromIndex(int)

public sbyte ReadSByteFromIndex(int indexIn)

Parameters

indexIn int

Returns

sbyte

ReadString(int)

public string ReadString(int numBytesIn)

Parameters

numBytesIn int

Returns

string

ReadStringAndNull()

public string ReadStringAndNull()

Returns

string

ReadStringAndNullFromIndex(int)

public string ReadStringAndNullFromIndex(int indexIn)

Parameters

indexIn int

Returns

string

ReadStringFromIndex(int, int)

public string ReadStringFromIndex(int indexIn, int numBytesIn)

Parameters

indexIn int
numBytesIn int

Returns

string

ReadUInt16()

public ushort ReadUInt16()

Returns

ushort

ReadUInt16FromIndex(int)

public ushort ReadUInt16FromIndex(int indexIn)

Parameters

indexIn int

Returns

ushort

ReadUInt32()

public uint ReadUInt32()

Returns

uint

ReadUInt32FromIndex(int)

public uint ReadUInt32FromIndex(int indexIn)

Parameters

indexIn int

Returns

uint

ReadUInt64()

public ulong ReadUInt64()

Returns

ulong

ReadUInt64FromIndex(int)

public ulong ReadUInt64FromIndex(int indexIn)

Parameters

indexIn int

Returns

ulong

ReadVarLengthedUInt64()

public ulong ReadVarLengthedUInt64()

Returns

ulong

ReadVarLengthedUInt64FromIndex(int)

public ulong ReadVarLengthedUInt64FromIndex(int indexIn)

Parameters

indexIn int

Returns

ulong

ReadWhitespace()

public string ReadWhitespace()

Returns

string

ReadWhitespaceFromIndex(int)

public string ReadWhitespaceFromIndex(int indexIn)

Parameters

indexIn int

Returns

string

Release()

public void Release()

RemoveBytes(int, int)

public void RemoveBytes(int index, int numBytes)

Parameters

index int
numBytes int

Reset(bool)

public void Reset(bool freeBuffer = false)

Parameters

freeBuffer bool

Resize(int)

public bool Resize(int newSize)

Parameters

newSize int

Returns

bool

Save(string)

public bool Save(string fileName)

Parameters

fileName string

Returns

bool

Seek(SeekPos, int)

public void Seek(Buffer.SeekPos seekPosIn, int offset)

Parameters

seekPosIn Buffer.SeekPos
offset int

SeekBegin(int)

public void SeekBegin(int offset)

Parameters

offset int

SeekCurrent(int)

public int SeekCurrent(int offset)

Parameters

offset int

Returns

int

SeekEnd(int)

public void SeekEnd(int offset)

Parameters

offset int

SetAllocGrowBlockSize(int)

public void SetAllocGrowBlockSize(int allocGrowBlockSize)

Parameters

allocGrowBlockSize int

SetAllocInitialSize(int)

public void SetAllocInitialSize(int allocInitialSize)

Parameters

allocInitialSize int

SetAllocMaxSize(int)

public void SetAllocMaxSize(int allocMaxSize)

Parameters

allocMaxSize int

SetBufferCachePool(BufferCachePool)

public void SetBufferCachePool(BufferCachePool bufferCachePool)

Parameters

bufferCachePool BufferCachePool

SetErrorAsWarning(bool)

public void SetErrorAsWarning(bool errorAsWarning)

Parameters

errorAsWarning bool

SetErrorFlag(string)

public void SetErrorFlag(string errorString)

Parameters

errorString string

SetNumBytesYouBetterKnowWhatYouAreDoing(int)

public void SetNumBytesYouBetterKnowWhatYouAreDoing(int numBytes)

Parameters

numBytes int

SetUniqueIdString(string)

public void SetUniqueIdString(string uniqueIdString)

Parameters

uniqueIdString string

SkipData(int)

public bool SkipData(int numBytesToSkipIn)

Parameters

numBytesToSkipIn int

Returns

bool

SkipLiteralString(string, bool)

public bool SkipLiteralString(string stringIn, bool caseSensitiveIn = true)

Parameters

stringIn string
caseSensitiveIn bool

Returns

bool

SkipNonWhitespace()

public bool SkipNonWhitespace()

Returns

bool

SkipWhitespace()

public bool SkipWhitespace()

Returns

bool

Truncate(int)

public void Truncate(int newSize)

Parameters

newSize int

Uninit()

public void Uninit()

WriteBool(bool)

public bool WriteBool(bool val)

Parameters

val bool

Returns

bool

WriteBoolAtIndex(int, bool)

public bool WriteBoolAtIndex(int indexIn, bool valueIn)

Parameters

indexIn int
valueIn bool

Returns

bool

WriteByte(byte)

public bool WriteByte(byte val)

Parameters

val byte

Returns

bool

WriteByteArrayOrNull(byte[])

public bool WriteByteArrayOrNull(byte[] byteArrayOrNull)

Parameters

byteArrayOrNull byte[]

Returns

bool

WriteByteAtIndex(int, byte)

public bool WriteByteAtIndex(int indexIn, byte valueIn)

Parameters

indexIn int
valueIn byte

Returns

bool

WriteChar(char)

public bool WriteChar(char val)

Parameters

val char

Returns

bool

WriteCharAtIndex(int, char)

public bool WriteCharAtIndex(int indexIn, char valueIn)

Parameters

indexIn int
valueIn char

Returns

bool

WriteData(byte[], int, int, bool)

public bool WriteData(byte[] byteArrayIn, int positionToReadFromIn, int numBytesToWriteIn, bool okToLogInfoIn = true)

Parameters

byteArrayIn byte[]
positionToReadFromIn int
numBytesToWriteIn int
okToLogInfoIn bool

Returns

bool

WriteDataAtIndex(int, byte[], int, int)

public bool WriteDataAtIndex(int indexIn, byte[] byteArrayIn, int positionToReadFromIn, int numBytesToWriteIn)

Parameters

indexIn int
byteArrayIn byte[]
positionToReadFromIn int
numBytesToWriteIn int

Returns

bool

WriteDataFromBuffer(Buffer, int, int, bool)

public bool WriteDataFromBuffer(Buffer bufferSrcIn, int positionToReadFromIn, int numBytesToWriteIn, bool okToLogInfoIn = true)

Parameters

bufferSrcIn Buffer
positionToReadFromIn int
numBytesToWriteIn int
okToLogInfoIn bool

Returns

bool

WriteDouble(double)

public bool WriteDouble(double val)

Parameters

val double

Returns

bool

WriteDoubleAtIndex(int, double)

public bool WriteDoubleAtIndex(int indexIn, double valueIn)

Parameters

indexIn int
valueIn double

Returns

bool

WriteFloat(float)

public bool WriteFloat(float val)

Parameters

val float

Returns

bool

WriteFloatAtIndex(int, float)

public bool WriteFloatAtIndex(int indexIn, float valueIn)

Parameters

indexIn int
valueIn float

Returns

bool

WriteIPEndPointOrNull(IPEndPoint)

public bool WriteIPEndPointOrNull(IPEndPoint ipEndPointOrNull)

Parameters

ipEndPointOrNull IPEndPoint

Returns

bool

WriteIPEndPointOrNullAtIndex(int, IPEndPoint)

public bool WriteIPEndPointOrNullAtIndex(int indexIn, IPEndPoint ipEndPointOrNull)

Parameters

indexIn int
ipEndPointOrNull IPEndPoint

Returns

bool

WriteInt16(short)

public bool WriteInt16(short val)

Parameters

val short

Returns

bool

WriteInt16AtIndex(int, short)

public bool WriteInt16AtIndex(int indexIn, short valueIn)

Parameters

indexIn int
valueIn short

Returns

bool

WriteInt32(int)

public bool WriteInt32(int val)

Parameters

val int

Returns

bool

WriteInt32AtIndex(int, int)

public bool WriteInt32AtIndex(int indexIn, int valueIn)

Parameters

indexIn int
valueIn int

Returns

bool

WriteInt64(long)

public bool WriteInt64(long val)

Parameters

val long

Returns

bool

WriteInt64AtIndex(int, long)

public bool WriteInt64AtIndex(int indexIn, long valueIn)

Parameters

indexIn int
valueIn long

Returns

bool

WriteLine(string)

public bool WriteLine(string line = null)

Parameters

line string

Returns

bool

WriteLineAtIndex(int, string)

public bool WriteLineAtIndex(int indexIn, string stringIn = null)

Parameters

indexIn int
stringIn string

Returns

bool

WritePrintableLogBytes(string, byte[], int, int)

public void WritePrintableLogBytes(string timeString, byte[] byteArray, int numBytes, int numColumns)

Parameters

timeString string
byteArray byte[]
numBytes int
numColumns int

WriteSByte(sbyte)

public bool WriteSByte(sbyte val)

Parameters

val sbyte

Returns

bool

WriteSByteAtIndex(int, sbyte)

public bool WriteSByteAtIndex(int indexIn, sbyte valueIn)

Parameters

indexIn int
valueIn sbyte

Returns

bool

WriteString(string)

public bool WriteString(string str)

Parameters

str string

Returns

bool

WriteStringAndNull(string)

public bool WriteStringAndNull(string str)

Parameters

str string

Returns

bool

WriteStringAndNullAtIndex(int, string)

public bool WriteStringAndNullAtIndex(int indexIn, string stringIn)

Parameters

indexIn int
stringIn string

Returns

bool

WriteStringAtIndex(int, string)

public bool WriteStringAtIndex(int indexIn, string stringIn)

Parameters

indexIn int
stringIn string

Returns

bool

WriteUInt16(ushort)

public bool WriteUInt16(ushort val)

Parameters

val ushort

Returns

bool

WriteUInt16AtIndex(int, ushort)

public bool WriteUInt16AtIndex(int indexIn, ushort valueIn)

Parameters

indexIn int
valueIn ushort

Returns

bool

WriteUInt32(uint)

public bool WriteUInt32(uint val)

Parameters

val uint

Returns

bool

WriteUInt32AtIndex(int, uint)

public bool WriteUInt32AtIndex(int indexIn, uint valueIn)

Parameters

indexIn int
valueIn uint

Returns

bool

WriteUInt64(ulong)

public bool WriteUInt64(ulong val)

Parameters

val ulong

Returns

bool

WriteUInt64AtIndex(int, ulong)

public bool WriteUInt64AtIndex(int indexIn, ulong valueIn)

Parameters

indexIn int
valueIn ulong

Returns

bool

WriteVarLengthedUInt64(ulong)

public bool WriteVarLengthedUInt64(ulong val)

Parameters

val ulong

Returns

bool

WriteVarLengthedUInt64AtIndex(int, ulong)

public bool WriteVarLengthedUInt64AtIndex(int indexIn, ulong valueIn)

Parameters

indexIn int
valueIn ulong

Returns

bool