Skip to content

@lang:bytes.at

Access a single byte by index in a bytes value.

Returns: bytes

@lang:bytes.at(value index)
NameTypeDescription
valuebytesSource bytes value
indexnumberZero-based byte index (negative counts from the end)

Select one byte using a signed index; negative indexes count from the end. Out-of-bounds or fractional indexes are rejected. Runtime source and index remain live until execution.