Skip to content

u256(__)

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

u256(_:)

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

public static func u256(_ deserializer: Deserializer) throws -> UInt256 

This function reads a 256-bit unsigned integer from the input data buffer by calling Deserializer.readInt(length:). It then attempts to convert the result into a UInt256 instance.

Parameters

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

Throws

Any error that may occur during the deserialization process, such as reading the input data, or if the conversion from the deserialized value to a UInt256 instance fails.

Returns

A deserialized UInt256 value from the input data buffer.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally