function decodeSyrup(bytes, options = {}) {
  const { name = '<unknown>' } = options;
  try {
    const syrupReader = makeSyrupReader(bytes, options);
    return AnyCodec.read(syrupReader);
  } catch (err) {
    if (err.code === 'EOD') {
      const err2 = Error(
        `Unexpected end of Syrup at index ${bytes.length} of ${name}`,
      );
      err2.cause = err;
      throw err2;
    }
    throw err;
  }
}
@param {Uint8Array} bytes
@param {object} options
@param {string} [options.name]
@param {number} [options.start]
@param {number} [options.end]