isUtf8.d.ts 225 B

123456
  1. /**
  2. * Validates that the given data is valid UTF-8 text.
  3. * @param buf Data to check.
  4. * @returns True if the data is valid UTF-8.
  5. */
  6. export declare const isUtf8: (buf: Uint8Array, from: number, length: number) => boolean;