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

Method AssertTaggedInt64

csharp/tests/Fory.Tests/ByteBufferTests.cs:245–254  ·  view source on GitHub ↗
(long value, int expectedBytes)

Source from the content-addressed store, hash-verified

243 }
244
245 private static void AssertTaggedInt64(long value, int expectedBytes)
246 {
247 ByteWriter writer = new();
248 writer.WriteTaggedInt64(value);
249 Assert.Equal(expectedBytes, writer.Count);
250
251 ByteReader reader = new(writer.ToArray());
252 Assert.Equal(value, reader.ReadTaggedInt64());
253 Assert.Equal(0, reader.Remaining);
254 }
255
256 private static void AssertTaggedUInt64(ulong value, int expectedBytes)
257 {

Callers

nothing calls this directly

Calls 4

ToArrayMethod · 0.80
WriteTaggedInt64Method · 0.45
EqualMethod · 0.45
ReadTaggedInt64Method · 0.45

Tested by

no test coverage detected