OxL Reference

method bytes.len

The number of bytes.

Example:

oxl✓ checked in CI
fn main() io {
  print("{b"\x01\x02\x03".len()}")
}
Output
3
pub(api) fn len() -> usize

Complexity. O(1).

Since. 1.0.0-beta

Returns

usize

Effects

none declared (pure unless the body says otherwise)

Defined in: std/core/text.oxl:795

See also