Skip to content

uleb128()

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

uleb128()

Deserialize an unsigned LEB128-encoded integer from the Deserializer's input data buffer.

public func uleb128() throws -> UInt 

This function reads bytes from the input data buffer and reconstructs the original unsigned integer using LEB128 encoding. LEB128 is a compact representation for variable-length integers, particularly for small values.

Throws

Any error that may occur during the deserialization process, such as reading the input data, or if the deserialized value is larger than the maximum supported value (UInt128).

Returns

A deserialized UInt value representing the original unsigned integer.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally