Data

public extension Data
extension Data: Writable, Readable
  • Deserialize a range of Data into a specific type

    Declaration

    Swift

    func extract<T>(start: Int, length: Int) throws -> T

    Parameters

    start

    start position

    lenght

    number of bytes (8 bit) from start that you want to keep in range

    Return Value

    Deserializaztion into a specific type.

  • Undocumented

    Declaration

    Swift

    public var data: Data { get }
  • Undocumented

    Declaration

    Swift

    public init(from data: Data)