Skip to content

Commit

Permalink
Export snappyUncompress
Browse files Browse the repository at this point in the history
  • Loading branch information
platypii committed Jan 4, 2024
1 parent 2c11159 commit 02c2505
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/hyparquet.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,13 @@ export function parquetRead(arrayBuffer: ArrayBuffer): any[][]
* @returns {FileMetaData} metadata object
*/
export function parquetMetadata(arrayBuffer: ArrayBuffer): any

/**
* Decompress snappy data.
* Accepts an output buffer to avoid allocating a new buffer for each call.
*
* @param {Uint8Array} inputArray compressed data
* @param {Uint8Array} outputArray output buffer
* @returns {boolean} true if successful
*/
export function snappyUncompress(inputArray: Uint8Array, outputArray: Uint8Array): boolean
3 changes: 3 additions & 0 deletions src/hyparquet.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import { parquetMetadata } from './metadata.js'
export { parquetMetadata }

import { snappyUncompress } from './snappy.js'
export { snappyUncompress }

/**
* Read parquet data rows from a file
*
Expand Down

0 comments on commit 02c2505

Please sign in to comment.