DoxigAlpha

readVarInt

Function parameters

Parameters

#
ReturnType:type
endian:std.builtin.Endian
size:usize

Type definitions in this namespace

Types

#
AnyReader
Deprecated in favor of `Reader`.
AnyWriter
Deprecated in favor of `Writer`.

Deprecated in favor of `Reader`.

Functions

#
GenericReader
Deprecated in favor of `Reader`.
GenericWriter
Deprecated in favor of `Writer`.
FixedBufferStream
Deprecated in favor of `Reader`.
fixedBufferStream
Deprecated in favor of `Reader`.
CountingReader
Deprecated with no replacement; inefficient pattern
countingReader
Deprecated with no replacement; inefficient pattern
PollFiles
Given an enum, returns a struct with fields of that enum, each field

Deprecated in favor of `Writer.Discarding`.

Values

#
null_writer
Deprecated in favor of `Writer.Discarding`.

Source

Implementation

#
pub inline fn readVarInt(
    self: Self,
    comptime ReturnType: type,
    endian: std.builtin.Endian,
    size: usize,
) NoEofError!ReturnType {
    return @errorCast(self.any().readVarInt(ReturnType, endian, size));
}