Functions
Const gzip
- gzip(buffer: InputType, options?: ZlibOptions): Promise<Buffer>
Parameters
buffer: InputType
Optional options: ZlibOptions
Returns Promise<Buffer>
hide
- hide(obj: any, prop: string): void
int32ip2str
- int32ip2str(ip: string | number): string
lock
- lock(obj: any, prop: string): void
Const md5
- md5(data: BinaryLike): Buffer
Const pipeline
- pipeline<A, B>(source: A, destination: B, options?: PipelineOptions): PipelinePromise<B>
- pipeline<A, T1, B>(source: A, transform1: T1, destination: B, options?: PipelineOptions): PipelinePromise<B>
- pipeline<A, T1, T2, B>(source: A, transform1: T1, transform2: T2, destination: B, options?: PipelineOptions): PipelinePromise<B>
- pipeline<A, T1, T2, T3, B>(source: A, transform1: T1, transform2: T2, transform3: T3, destination: B, options?: PipelineOptions): PipelinePromise<B>
- pipeline<A, T1, T2, T3, T4, B>(source: A, transform1: T1, transform2: T2, transform3: T3, transform4: T4, destination: B, options?: PipelineOptions): PipelinePromise<B>
- pipeline(streams: readonly (ReadableStream | ReadWriteStream | WritableStream)[], options?: PipelineOptions): Promise<void>
- pipeline(stream1: ReadableStream, stream2: ReadWriteStream | WritableStream, ...streams: (ReadWriteStream | WritableStream | PipelineOptions)[]): Promise<void>
Type parameters
A: PipelineSource<any>
B: WritableStream | PipelineDestinationIterableFunction<string | Buffer> | PipelineDestinationPromiseFunction<string | Buffer, any> | PipelineDestinationIterableFunction<any> | PipelineDestinationPromiseFunction<any, any>
Parameters
source: A
destination: B
Optional options: PipelineOptions
Returns PipelinePromise<B>
Type parameters
A: PipelineSource<any>
T1: PipelineTransform<A, any>
B: WritableStream | PipelineDestinationIterableFunction<string | Buffer> | PipelineDestinationPromiseFunction<string | Buffer, any> | PipelineDestinationIterableFunction<any> | PipelineDestinationPromiseFunction<any, any>
Parameters
source: A
transform1: T1
destination: B
Optional options: PipelineOptions
Returns PipelinePromise<B>
Type parameters
A: PipelineSource<any>
T1: PipelineTransform<A, any>
T2: PipelineTransform<T1, any>
B: WritableStream | PipelineDestinationIterableFunction<string | Buffer> | PipelineDestinationPromiseFunction<string | Buffer, any> | PipelineDestinationIterableFunction<any> | PipelineDestinationPromiseFunction<any, any>
Parameters
source: A
transform1: T1
transform2: T2
destination: B
Optional options: PipelineOptions
Returns PipelinePromise<B>
Type parameters
A: PipelineSource<any>
T1: PipelineTransform<A, any>
T2: PipelineTransform<T1, any>
T3: PipelineTransform<T2, any>
B: WritableStream | PipelineDestinationIterableFunction<string | Buffer> | PipelineDestinationPromiseFunction<string | Buffer, any> | PipelineDestinationIterableFunction<any> | PipelineDestinationPromiseFunction<any, any>
Parameters
source: A
transform1: T1
transform2: T2
transform3: T3
destination: B
Optional options: PipelineOptions
Returns PipelinePromise<B>
Type parameters
A: PipelineSource<any>
T1: PipelineTransform<A, any>
T2: PipelineTransform<T1, any>
T3: PipelineTransform<T2, any>
T4: PipelineTransform<T3, any>
B: WritableStream | PipelineDestinationIterableFunction<string | Buffer> | PipelineDestinationPromiseFunction<string | Buffer, any> | PipelineDestinationIterableFunction<any> | PipelineDestinationPromiseFunction<any, any>
Parameters
source: A
transform1: T1
transform2: T2
transform3: T3
transform4: T4
destination: B
Optional options: PipelineOptions
Returns PipelinePromise<B>
Parameters
streams: readonly (ReadableStream | ReadWriteStream | WritableStream)[]
Optional options: PipelineOptions
Returns Promise<void>
Parameters
stream1: ReadableStream
stream2: ReadWriteStream | WritableStream
Rest ...streams: (ReadWriteStream | WritableStream | PipelineOptions)[]
Returns Promise<void>
Const sha
- sha(data: BinaryLike): Buffer
Const unzip
- unzip(buffer: InputType, options?: ZlibOptions): Promise<Buffer>
Parameters
buffer: InputType
Optional options: ZlibOptions
Returns Promise<Buffer>
一个0长buf