Esempio n. 1
0
    public void SaveData(BinaryWriter bw)
    {
        BytesBuffer bb       = SaveBytesBuffer();
        int         bbLength = bb.GetOffset();

        bw.Write(bbLength);
        bw.Write(bb.GetBytes(), 0, bbLength);
    }
Esempio n. 2
0
    public void AddBytesBuffer(BytesBuffer bb)
    {
        int bbLength = bb.GetOffset();

        //Debug.Log("bbLength = " + bbLength);
        AddInt(bbLength);
        AddBytes(bb.GetBytes(), bbLength);
    }