{"version":3,"file":"create.cjs","names":[],"sources":["../../../../src/common/bin/lib0/create.ts"],"sourcesContent":["/**\n * Original at https://github.com/dmonad/lib0\n *\n * Utility functions to work with buffers (Uint8Array).\n */\n\n/**\n * Create Uint8Array with initial content from buffer\n */\nexport function createUint8ArrayViewFromArrayBuffer(buffer: ArrayBufferLike, byteOffset: number, length: number) {\n  return new Uint8Array(buffer, byteOffset, length)\n}\n\n/**\n * Create Uint8Array with initial content from buffer\n */\nexport function createUint8ArrayFromArrayBuffer(buffer: ArrayBuffer) {\n  return new Uint8Array(buffer)\n}\n"],"mappings":";;;;;;;;;;;AASA,SAAgB,oCAAoC,QAAyB,YAAoB,QAAgB;AAC/G,QAAO,IAAI,WAAW,QAAQ,YAAY,OAAO;;;;;AAMnD,SAAgB,gCAAgC,QAAqB;AACnE,QAAO,IAAI,WAAW,OAAO"}