Example #1
0
        public sbyte[] GetBytes(int order)
        {
            char[]    items = this.items;
            int       size  = items.Length;
            ArrayByte bytes = new ArrayByte(size * 2);

            bytes.SetOrder(order);
            for (int i = 0; i < size; i++)
            {
                bytes.WriteChar(items[i]);
            }
            return(bytes.GetBytes());
        }
Example #2
0
 public sbyte[] ToByteArray()
 {
     return(_buffer.GetBytes());
 }