(long value, int expectedBytes)
| 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 | { |
nothing calls this directly
no test coverage detected