Converts an input argument to a Buffer, handling cases for both JSON and Uint8Array.
The input argument, either JSON object or Uint8Array.
A Buffer representation of the input argument.
Converts an input argument to a Buffer, handling cases for both JSON and Uint8Array.