build
open fun build(version: Int, op: Int, flags: Int, len: Int, group: Int, sequence: Int, id: Int): @NotNull Array<Byte>
Builds a new manager header.
Return
The built newt manager header.
Parameters
version
this indicates the version of the protocol being used, this should be set to 0b01 to use the newer SMP transport where error codes are more detailed and returned in the map, otherwise left as 0b00 to use the legacy SMP protocol. Versions 0b10 and 0b11 are reserved for future use and should not be used.
op
the operation for this packet: (OP_READ, OP_READ_RSP, OP_WRITE, OP_WRITE_RSP).
flags
newt manager flags.
len
the length (this field is NOT required for all default newt manager commands).
group
the newt manager command group. Some groups such as GROUP_IMAGE must also specify a sub-command ID.
sequence
the newt manager sequence number.
id
the sub-command ID for certain groups.