Example #1
0
        internal byte[] GetBytes()
        {
            MemoryStream TemporaryStream = new MemoryStream();

            TemporaryStream.Write(HabboEncoding.EncodeInt32((int)Buffer.Length), 0, 4);
            TemporaryStream.Write(Buffer.ToArray(), 0, (int)Buffer.Length);

            return(TemporaryStream.ToArray());
        }
Example #2
0
 internal void AppendInt32(int i)
 {
     Buffer.Write(HabboEncoding.EncodeInt32(i), 0, 4);
 }