File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -18,14 +18,14 @@ import { decodeSchema } from './schema.js';
1818 * `createData()` method on the result to enable column data access.
1919 *
2020 * [1]: https://arrow.apache.org/docs/format/Columnar.html#serialization-and-interprocess-communication-ipc
21- * @param {ArrayBuffer | Uint8Array | Uint8Array[] } data
21+ * @param {ArrayBufferLike | Uint8Array | Uint8Array[] } data
2222 * The source byte buffer, or an array of buffers. If an array, each byte
2323 * array may contain one or more self-contained messages. Messages may NOT
2424 * span multiple byte arrays.
2525 * @returns {import('../types.js').ArrowData }
2626 */
2727export function decodeIPC ( data ) {
28- const source = data instanceof ArrayBuffer
28+ const source = data instanceof ArrayBuffer || data instanceof SharedArrayBuffer
2929 ? new Uint8Array ( data )
3030 : data ;
3131 return source instanceof Uint8Array && isArrowFileFormat ( source )
You can’t perform that action at this time.
0 commit comments