MCPcopy Create free account
hub / github.com/apache/fory / AssertTaggedUInt64

Method AssertTaggedUInt64

csharp/tests/Fory.Tests/ByteBufferTests.cs:256–265  ·  view source on GitHub ↗
(ulong value, int expectedBytes)

Source from the content-addressed store, hash-verified

254 }
255
256 private static void AssertTaggedUInt64(ulong value, int expectedBytes)
257 {
258 ByteWriter writer = new();
259 writer.WriteTaggedUInt64(value);
260 Assert.Equal(expectedBytes, writer.Count);
261
262 ByteReader reader = new(writer.ToArray());
263 Assert.Equal(value, reader.ReadTaggedUInt64());
264 Assert.Equal(0, reader.Remaining);
265 }
266}

Callers

nothing calls this directly

Calls 4

WriteTaggedUInt64Method · 0.80
ToArrayMethod · 0.80
ReadTaggedUInt64Method · 0.80
EqualMethod · 0.45

Tested by

no test coverage detected