Functions

The following functions are available globally.

MemoryMode

non-optional properties

optional properties

CBridge

Comparable

  • Undocumented

    Declaration

    Swift

    public func == (lhs: JSON, rhs: JSON) -> Bool
  • Undocumented

    Declaration

    Swift

    public func <= (lhs: JSON, rhs: JSON) -> Bool
  • Undocumented

    Declaration

    Swift

    public func >= (lhs: JSON, rhs: JSON) -> Bool
  • Undocumented

    Declaration

    Swift

    public func > (lhs: JSON, rhs: JSON) -> Bool
  • Undocumented

    Declaration

    Swift

    public func < (lhs: JSON, rhs: JSON) -> Bool

Framer

  • Write a UInt16 to the buffer. It fills the 2 array “slots” of the UInt8 array.

    Declaration

    Swift

    public func writeUint16(_ buffer: inout [UInt8], offset: Int, value: UInt16)

    Parameters

    buffer

    is the UInt8 array (pointer) to write the value too.

    offset

    is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).

  • Write a UInt32 to the buffer. It fills the 4 array “slots” of the UInt8 array.

    Declaration

    Swift

    public func writeUint32(_ buffer: inout [UInt8], offset: Int, value: UInt32)

    Parameters

    buffer

    is the UInt8 array (pointer) to write the value too.

    offset

    is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).

  • Write a UInt64 to the buffer. It fills the 8 array “slots” of the UInt8 array.

    Declaration

    Swift

    public func writeUint64(_ buffer: inout [UInt8], offset: Int, value: UInt64)

    Parameters

    buffer

    is the UInt8 array (pointer) to write the value too.

    offset

    is the offset index to start the write from (e.g. buffer[0], buffer[1], etc).