"use strict";
/* Socket Lib - Built with rolldown */
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
const require_primordials_uncurry = require('./uncurry.js');

//#region src/primordials/buffer.ts
/**
* @file Safe references to Node's `Buffer` global. `Buffer` is a Node-only
*   global; in browsers and Deno (without compatibility shim) the captured
*   references are `undefined`. Cross- env consumers must null-check before
*   calling.
*/
const BufferCtor = globalThis.Buffer;
const BufferAlloc = BufferCtor?.alloc;
const BufferAllocUnsafe = BufferCtor?.allocUnsafe;
const BufferAllocUnsafeSlow = BufferCtor?.allocUnsafeSlow;
const BufferByteLength = BufferCtor?.byteLength;
const BufferConcat = BufferCtor?.concat;
const BufferFrom = BufferCtor?.from;
const BufferIsBuffer = BufferCtor?.isBuffer;
const BufferIsEncoding = BufferCtor?.isEncoding;
/* c8 ignore start */
const BufferPrototypeSlice = BufferCtor ? require_primordials_uncurry.uncurryThis(BufferCtor.prototype.slice) : void 0;
const BufferPrototypeToString = BufferCtor ? require_primordials_uncurry.uncurryThis(BufferCtor.prototype.toString) : void 0;
/* c8 ignore stop */

//#endregion
exports.BufferAlloc = BufferAlloc;
exports.BufferAllocUnsafe = BufferAllocUnsafe;
exports.BufferAllocUnsafeSlow = BufferAllocUnsafeSlow;
exports.BufferByteLength = BufferByteLength;
exports.BufferConcat = BufferConcat;
exports.BufferCtor = BufferCtor;
exports.BufferFrom = BufferFrom;
exports.BufferIsBuffer = BufferIsBuffer;
exports.BufferIsEncoding = BufferIsEncoding;
exports.BufferPrototypeSlice = BufferPrototypeSlice;
exports.BufferPrototypeToString = BufferPrototypeToString;