u16(__) - OpenDive/AptosKit GitHub Wiki

u16(_:)

Deserialize a UInt16 value from the Deserializer's input data buffer.

public static func u16(_ deserializer: Deserializer) throws -> UInt16 

This function reads a 16-bit unsigned integer from the input data buffer by calling Deserializer.readInt(length:).

Parameters

  • deserializer: The Deserializer instance to deserialize the UInt16 value from.

Throws

Any error that may occur during the deserialization process, such as reading the input data.

Returns

A deserialized UInt16 value from the input data buffer.