示例#1
0
        public byte[] SerializeAligned(ref Library.NewFastSerializer.SerializationWriter mySerializationWriter)
        {
            this.Serialize(ref mySerializationWriter);

            // align it...for the sake of performance we do not check upfront, it gets copied
            // already two times...
            byte[] Output = new byte[33];
            mySerializationWriter.ToArray().CopyTo(Output, 0);

            return Output;
        }