コード例 #1
0
        public void Raw64()
        {
            MsgPackWriter writer = new MsgPackWriter(Allocator.Temp);

            writer.WriteRawBigEndian64(ulong.MinValue);
            writer.WriteRawBigEndian64(ulong.MaxValue);

            MsgPackReader reader = new MsgPackReader(writer.ToArray(Allocator.Temp));

            Assert.That(reader.ReadRawBigEndian64(), Is.EqualTo(ulong.MinValue));
            Assert.That(reader.ReadRawBigEndian64(), Is.EqualTo(ulong.MaxValue));
        }