Bytes.Octets.split_at: def of bend-osdev-bytes@0.1.1.0 Import: import bend-osdev-bytes@0.1.1.0/bytes.bend as Bytes Lines 642-644 of bend-osdev-bytes@0.1.1.0/bytes.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&start_line=642&end_line=644 import Base # the first n bytes and the rest, or None if o has fewer than n bytes def Octets.split_at(+n: Nat, +o: Octets) -> Maybe<&2, OctetsSplit>: Octets.split_at.pick(Nat.is_le(n, Octets.len(o)), n, o) Uses (7): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Maybe https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_le https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.len https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=Octets.split_at.pick https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=OctetsSplit