MCPcopy Create free account
hub / github.com/chronoxor/FastBinaryEncoding / Get

Method Get

projects/CSharp/Proto/com.chronoxor.fbe.cs:5537–5547  ·  view source on GitHub ↗

Get the value

(out byte value)

Source from the content-addressed store, hash-verified

5535
5536 // Get the value
5537 public override long Get(out byte value)
5538 {
5539 if ((_buffer.Offset + FBEOffset + FBESize) > _buffer.Size)
5540 {
5541 value = (byte)0;
5542 return 0;
5543 }
5544
5545 value = ReadByte(FBEOffset);
5546 return FBESize;
5547 }
5548
5549 // Set the value
5550 public override long Set(byte value)

Callers

nothing calls this directly

Calls 1

ReadByteFunction · 0.85

Tested by

no test coverage detected