Exemple #1
0
        public void WriteSemanticTag(string hexBuffer, ulong semanticTag)
        {
            using (ByteBufferWriter buffer = new ByteBufferWriter())
            {
                CborWriter writer = new CborWriter(buffer);

                if (semanticTag != ulong.MaxValue)
                {
                    writer.WriteSemanticTag(semanticTag);
                }
                writer.WriteUInt32(1563049435);

                Assert.Equal(hexBuffer, BitConverter.ToString(buffer.WrittenSpan.ToArray()).Replace("-", ""));
            }
        }