

const require_rolldown_runtime = require('../_virtual/rolldown_runtime.js');
let varint = require("varint");
varint = require_rolldown_runtime.__toESM(varint);

//#region src/utils/VarintEncoder.ts
var VarintEncoder = class VarintEncoder {
	static decode(data) {
		return [varint.default.decode(data), varint.default.decode.bytes];
	}
	static encode(int) {
		const target = new Uint8Array(VarintEncoder.encodingLength(int));
		varint.default.encode(int, target);
		return target;
	}
	static encodingLength(int) {
		return varint.default.encodingLength(int);
	}
};

//#endregion
exports.VarintEncoder = VarintEncoder;