UNPKG

soundfont2

Version:

A SoundFont2 parser for Node.js and web browsers

9 lines (8 loc) 358 B
/** * Convert a UTF-8 encoded buffer into a string. This will read the full buffer as UTF-8 encoded * string and return anything before the first NULL character. The output text is trimmed of any * preceding or following spaces. * * @param {Buffer} buffer - The input buffer */ export declare const getStringFromBuffer: (buffer: Uint8Array) => string;