Function: opendictCdbBytes()
opendictCdbBytes(
url):Promise<Uint8Array<ArrayBufferLike>>
Loads an Open Korean Dictionary CDB binary as raw bytes.
A file: URL is read from disk with node:fs/promises when running in
Node.js, Deno, or Bun; in other runtimes (e.g. browsers) and for all
other schemes the bytes are retrieved with fetch.
The bundled binaries are stored gzip-compressed to stay within registry
per-file size limits. Bytes that begin with the gzip magic number are
therefore inflated transparently, so the returned value is always the raw
CDB ready to hand to load; bytes that are not gzip-compressed are returned
unchanged.
Parameters
url
URL
Location of the CDB binary to read.
Returns
Promise<Uint8Array<ArrayBufferLike>>
The CDB binary as a Uint8Array.