You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
642 B
16 lines
642 B
3 years ago
|
/// <reference types="node" />
|
||
|
import { Buffer } from 'buffer';
|
||
|
declare const bufferAllocUnsafe: (size: number) => Buffer;
|
||
|
declare const bufferFrom: {
|
||
|
(arrayBuffer: ArrayBuffer | SharedArrayBuffer, byteOffset?: number | undefined, length?: number | undefined): Buffer;
|
||
|
(data: readonly any[]): Buffer;
|
||
|
(data: Uint8Array): Buffer;
|
||
|
(obj: {
|
||
|
valueOf(): string | object;
|
||
|
} | {
|
||
|
[Symbol.toPrimitive](hint: "string"): string;
|
||
|
}, byteOffset?: number | undefined, length?: number | undefined): Buffer;
|
||
|
(str: string, encoding?: string | undefined): Buffer;
|
||
|
};
|
||
|
export { Buffer, bufferAllocUnsafe, bufferFrom };
|