function encodeSyrup(value, options = {}) {
  const syrupWriter = makeSyrupWriter(options);
  AnyCodec.write(value, syrupWriter);
  return syrupWriter.getBytes();
}
@param {any} value
@param {object} [options]
@param {number} [options.length] A guess at the length. If provided, must be
greater than zero.
@returns {Uint8Array}