Skip to content

fixedBytes(length_)

MarcoDotIO edited this page Apr 25, 2023 · 1 revision

fixedBytes(length:)

Deserialize a fixed-length Data object from the Deserializer's input data buffer.

public func fixedBytes(length: Int) throws -> Data 

This function reads the specified number of bytes from the input data buffer and returns the data as a Data object.

Parameters

  • length: The number of bytes to read from the input data buffer.

Throws

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

Returns

A Data object of the specified length deserialized from the input data buffer.

Types
Protocols
Global Variables
Global Functions
Extensions
Clone this wiki locally