# bin/set-i64-be Return a copy of `$bytes` with a signed 64-bit integer written at `offset` (big-endian). Byte strings are immutable — the original `$bytes` is unchanged. ## Syntax
[bin/set-i64-be $bytes $offset $value]
## Parameters - `$bytes` — byte string to copy and write into - `$offset` — 0-based byte offset - `$value` — value to write; clamped to the 64-bit range and truncated toward zero ## Examples
def buf [bin/set-i64-be [bin/zeros 8] 0 -123456789]
[bin/i64-be-at $buf 0] # → -123456789
[bin/u8-at $buf 0] # → 255
## Returns New byte string. A negative or out-of-bounds offset returns `%Err{:message}`. ## See Also `bin/i64-be-at`, `bin/set-i64`, `bin/set-bytes`, `bin/bytes`