Пример #1
0
        public void ByteBuffer_Hex16String_Convert_Test()
        {
            var hexString = ByteBufferUtil.ByteBufferToHex16(Encoding.UTF8.GetBytes("Hello"));
            var buffer    = ByteBufferUtil.Hex16ToByteBuffer(hexString);
            var value     = Encoding.UTF8.GetString(buffer);

            Assert.Equal("Hello", value);
        }