ModeCore.CmBlock.of_octets: def of bend-osdev-mode-core@0.1.0.0 Import: import bend-osdev-mode-core@0.1.0.0/mode_core.bend as ModeCore Lines 304-307 of bend-osdev-mode-core@0.1.0.0/mode_core.bend: https://jend.leeeet.dev/read.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&start_line=304&end_line=307 import Base import bend-osdev-bytes@0.1.1.0/bytes.bend as B # a 16-byte string as a block; None for any other length def CmBlock.of_octets(o: B.Octets) -> Maybe<&2, CmBlock>: +xs = B.Octets.to_list(o) CmBlock.of_octets.pick(Nat.is_eq(B.len(xs), 16n), xs) 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.is_eq 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.to_list https://jend.leeeet.dev/definition.txt?path=bend-osdev-bytes@0.1.1.0/bytes.bend&name=len https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=CmBlock https://jend.leeeet.dev/definition.txt?path=bend-osdev-mode-core@0.1.0.0/mode_core.bend&name=CmBlock.of_octets.pick