binary

An array of bytes.

Optional Parameters

  • Length constraint - binary( min, max )

An optional length can be specified to a binary, which can be used for enforcing binary data length.

Examples

  • binary(8,8) A byte array of exactly 8 bytes.
  • binary(1,*) A non-empty byte array.
  • binary(64,128) Array of bytes with length between 64 and 128.