跳到主要内容

ByteBuffer

命名空间:FairyGUI.Utils
源码:Assets/Scripts/Utils/ByteBuffer.cs (行 11)

public class ByteBuffer

构造函数​

ByteBuffer(byte[], int, int)​

public ByteBuffer(byte[] data, int offset = 0, int length = -1);
参数类型说明
databyte[]
offsetint
lengthint

源码:Utils/ByteBuffer.cs (行 41)

字段​

littleEndian​

public bool littleEndian;

源码:Utils/ByteBuffer.cs (行 16)

stringTable​

public string[] stringTable;

源码:Utils/ByteBuffer.cs (行 21)

version​

public int version;

源码:Utils/ByteBuffer.cs (行 26)

方法​

ReadBool()​

public bool ReadBool();

源码:Utils/ByteBuffer.cs (行 173)

ReadBuffer()​

public ByteBuffer ReadBuffer();

源码:Utils/ByteBuffer.cs (行 150)

ReadByte()​

public byte ReadByte();

源码:Utils/ByteBuffer.cs (行 108)

ReadBytes(byte[], int, int)​

public byte[] ReadBytes(byte[] output, int destIndex, int count);
参数类型说明
outputbyte[]
destIndexint
countint

源码:Utils/ByteBuffer.cs (行 120)

ReadBytes(int)​

public byte[] ReadBytes(int count);
参数类型说明
countint

源码:Utils/ByteBuffer.cs (行 135)

ReadChar()​

public char ReadChar();

源码:Utils/ByteBuffer.cs (行 164)

ReadColor()​

public Color ReadColor();

源码:Utils/ByteBuffer.cs (行 399)

ReadDouble()​

public double ReadDouble();

源码:Utils/ByteBuffer.cs (行 272)

ReadFloat()​

public float ReadFloat();

源码:Utils/ByteBuffer.cs (行 230)

ReadInt()​

public int ReadInt();

源码:Utils/ByteBuffer.cs (行 207)

ReadLong()​

public long ReadLong();

源码:Utils/ByteBuffer.cs (行 250)

ReadPath()​

public List<GPathPoint> ReadPath();

源码:Utils/ByteBuffer.cs (行 351)

ReadS()​

public string ReadS();

源码:Utils/ByteBuffer.cs (行 320)

ReadSArray(int)​

public string[] ReadSArray(int cnt);
参数类型说明
cntint

源码:Utils/ByteBuffer.cs (行 336)

ReadShort()​

public short ReadShort();

源码:Utils/ByteBuffer.cs (行 184)

ReadString()​

public string ReadString();

源码:Utils/ByteBuffer.cs (行 296)

ReadString(int)​

public string ReadString(int len);
参数类型说明
lenint

源码:Utils/ByteBuffer.cs (行 309)

ReadUint()​

public uint ReadUint();

源码:Utils/ByteBuffer.cs (行 221)

ReadUshort()​

public ushort ReadUshort();

源码:Utils/ByteBuffer.cs (行 198)

Seek(int, int)​

public bool Seek(int indexTablePos, int blockIndex);
参数类型说明
indexTablePosint
blockIndexint

源码:Utils/ByteBuffer.cs (行 417)

Skip(int)​

public int Skip(int count);
参数类型说明
countint

源码:Utils/ByteBuffer.cs (行 98)

WriteS(string)​

public void WriteS(string value);
参数类型说明
valuestring

源码:Utils/ByteBuffer.cs (行 388)

属性​

buffer​

public byte[] buffer { get; set; }

源码:Utils/ByteBuffer.cs (行 81)

bytesAvailable​

public bool bytesAvailable { get; }

源码:Utils/ByteBuffer.cs (行 73)

length​

public int length { get; }

源码:Utils/ByteBuffer.cs (行 65)

position​

public int position { get; set; }

源码:Utils/ByteBuffer.cs (行 56)