Skip to main content

ByteBuffer

Namespace:FairyGUI.Utils
Source:Assets/Scripts/Utils/ByteBuffer.cs (line 11)

public class ByteBuffer

Constructors​

ByteBuffer(byte[], int, int)​

public ByteBuffer(byte[] data, int offset = 0, int length = -1);
ParameterTypeDescription
databyte[]
offsetint
lengthint

Source:Utils/ByteBuffer.cs (line 41)

Fields​

littleEndian​

public bool littleEndian;

Source:Utils/ByteBuffer.cs (line 16)

stringTable​

public string[] stringTable;

Source:Utils/ByteBuffer.cs (line 21)

version​

public int version;

Source:Utils/ByteBuffer.cs (line 26)

Methods​

ReadBool()​

public bool ReadBool();

Source:Utils/ByteBuffer.cs (line 173)

ReadBuffer()​

public ByteBuffer ReadBuffer();

Source:Utils/ByteBuffer.cs (line 150)

ReadByte()​

public byte ReadByte();

Source:Utils/ByteBuffer.cs (line 108)

ReadBytes(byte[], int, int)​

public byte[] ReadBytes(byte[] output, int destIndex, int count);
ParameterTypeDescription
outputbyte[]
destIndexint
countint

Source:Utils/ByteBuffer.cs (line 120)

ReadBytes(int)​

public byte[] ReadBytes(int count);
ParameterTypeDescription
countint

Source:Utils/ByteBuffer.cs (line 135)

ReadChar()​

public char ReadChar();

Source:Utils/ByteBuffer.cs (line 164)

ReadColor()​

public Color ReadColor();

Source:Utils/ByteBuffer.cs (line 399)

ReadDouble()​

public double ReadDouble();

Source:Utils/ByteBuffer.cs (line 272)

ReadFloat()​

public float ReadFloat();

Source:Utils/ByteBuffer.cs (line 230)

ReadInt()​

public int ReadInt();

Source:Utils/ByteBuffer.cs (line 207)

ReadLong()​

public long ReadLong();

Source:Utils/ByteBuffer.cs (line 250)

ReadPath()​

public List<GPathPoint> ReadPath();

Source:Utils/ByteBuffer.cs (line 351)

ReadS()​

public string ReadS();

Source:Utils/ByteBuffer.cs (line 320)

ReadSArray(int)​

public string[] ReadSArray(int cnt);
ParameterTypeDescription
cntint

Source:Utils/ByteBuffer.cs (line 336)

ReadShort()​

public short ReadShort();

Source:Utils/ByteBuffer.cs (line 184)

ReadString()​

public string ReadString();

Source:Utils/ByteBuffer.cs (line 296)

ReadString(int)​

public string ReadString(int len);
ParameterTypeDescription
lenint

Source:Utils/ByteBuffer.cs (line 309)

ReadUint()​

public uint ReadUint();

Source:Utils/ByteBuffer.cs (line 221)

ReadUshort()​

public ushort ReadUshort();

Source:Utils/ByteBuffer.cs (line 198)

Seek(int, int)​

public bool Seek(int indexTablePos, int blockIndex);
ParameterTypeDescription
indexTablePosint
blockIndexint

Source:Utils/ByteBuffer.cs (line 417)

Skip(int)​

public int Skip(int count);
ParameterTypeDescription
countint

Source:Utils/ByteBuffer.cs (line 98)

WriteS(string)​

public void WriteS(string value);
ParameterTypeDescription
valuestring

Source:Utils/ByteBuffer.cs (line 388)

Properties​

buffer​

public byte[] buffer { get; set; }

Source:Utils/ByteBuffer.cs (line 81)

bytesAvailable​

public bool bytesAvailable { get; }

Source:Utils/ByteBuffer.cs (line 73)

length​

public int length { get; }

Source:Utils/ByteBuffer.cs (line 65)

position​

public int position { get; set; }

Source:Utils/ByteBuffer.cs (line 56)