> For AI agents: the complete documentation index is available at https://canary.gukhanmun.org/llms.txt, the full documentation bundle is available at https://canary.gukhanmun.org/llms-full.txt.

# Function: stdictCdbBytes()

> **stdictCdbBytes**(`url?`): `Promise`\<`Uint8Array`\<`ArrayBuffer`>>

Loads the bundled Standard Korean Language Dictionary as raw bytes.

The access strategy is chosen from the URL scheme, not from the host
runtime.  A `file:` URL is read from disk with `node:fs/promises` (Node.js,
Deno, and Bun all provide it, and it is the only option since Node.js's
`fetch` rejects `file:` URLs); any other scheme is retrieved with `fetch`.

Branching on the scheme is what makes a JSR install work on Deno: there
`import.meta.url` (and therefore [stdictCdbUrl](https://canary.gukhanmun.org/api/js/variables/_gukhanmun_stdict-cdb.stdictCdbUrl.md)) is an `https:` URL,
yet Deno also exposes `process.versions.node`, so a runtime sniff would
wrongly take the `node:fs` path and `readFile` would reject the `https:`
URL with "The URL must be of scheme file".

Gzip is detected from the payload's magic bytes, so compressed files are
inflated transparently and relocated raw CDB files remain supported.

## Parameters

### url?

`URL` = `stdictCdbUrl`

Location of the raw or gzip-compressed CDB to read. Defaults to the bundled
[stdictCdbUrl](https://canary.gukhanmun.org/api/js/variables/_gukhanmun_stdict-cdb.stdictCdbUrl.md); pass another URL to load a relocated copy.

## Returns

`Promise`\<`Uint8Array`\<`ArrayBuffer`>>

The CDB binary as a `Uint8Array`.
