프로퍼티 | 타입 | 설명 | |
---|---|---|---|
Position | int |
메소드 | 설명 | |
---|---|---|
EnsureBytes ( int count ) : void |
Ensure that there are at least count bytes remaining in the buffer
|
|
FromBuffer ( byte buffer ) : |
Creates a reader on a byte array
|
|
FromBuffer ( byte buffer, int offset, int count ) : |
Creates a reader on a segment of a byte array
|
|
ReadByte ( ) : byte |
Read the next byte from the buffer
|
|
ReadByteString ( ) : Slice |
Read an encoded nul-terminated byte array from the buffer
|
|
ReadBytes ( int count ) : Slice |
Read the next count bytes from the buffer
|
|
ReadFixed16 ( ) : ushort |
Read the next 2 bytes as an unsigned 16-bit integer, encoded in little-endian
|
|
ReadFixed16BE ( ) : ushort |
Read the next 2 bytes as an unsigned 16-bit integer, encoded in big-endian
|
|
ReadFixed32 ( ) : uint |
Read the next 4 bytes as an unsigned 32-bit integer, encoded in little-endian
|
|
ReadFixed32BE ( ) : uint |
Read the next 4 bytes as an unsigned 32-bit integer, encoded in big-endian
|
|
ReadFixed64 ( ) : ulong |
Read the next 8 bytes as an unsigned 64-bit integer, encoded in little-endian
|
|
ReadFixed64BE ( ) : ulong |
Read the next 8 bytes as an unsigned 64-bit integer, encoded in big-endian
|
|
ReadVarbytes ( ) : Slice |
Reads a variable sized slice, by first reading its size (stored as a Varint32) and then the data
|
|
ReadVarint16 ( ) : ushort |
Reads a 7-bit encoded unsigned int (aka 'Varint16') from the buffer, and advances the cursor Can Read up to 3 bytes from the input |
|
ReadVarint32 ( ) : uint |
Reads a 7-bit encoded unsigned int (aka 'Varint32') from the buffer, and advances the cursor Can Read up to 5 bytes from the input |
|
ReadVarint64 ( ) : ulong |
Reads a 7-bit encoded unsigned long (aka 'Varint32') from the buffer, and advances the cursor Can Read up to 10 bytes from the input |
|
Skip ( int count ) : void |
Skip the next count bytes of the buffer
|
|
SliceReader ( Slice buffer ) : JetBrains.Annotations |
Creates a new reader over a slice
|
메소드 | 설명 | |
---|---|---|
PeekByte ( ) : int | ||
ReadVarint ( int count ) : ulong |
Reads a Base 128 Varint from the input
|
public static FromBuffer ( byte buffer ) : |
||
buffer | byte | |
리턴 |
public static FromBuffer ( byte buffer, int offset, int count ) : |
||
buffer | byte | |
offset | int | |
count | int | |
리턴 |
public SliceReader ( Slice buffer ) : JetBrains.Annotations | ||
buffer | Slice | Slice that will be used as the underlying buffer |
리턴 | JetBrains.Annotations |