Assembly

struct Assembly

Reassembles fragments of one request or response and validates the completed property list.

  • id

    The request ID of the packet being assembled.

    Declaration

    Swift

    var id: UInt32?
  • The payload bytes collected for the current packet.

    Declaration

    Swift

    var bytes: Data
  • Accepts a matching fragment and returns the request ID and message when a packet is complete.

    Declaration

    Swift

    mutating func accept(_ frame: Data) -> (UInt32, [String : Any])?