Explorer

cbor.bytes

description
The bytes of CBOR bytes, or of an array of integers from 0 to 255 (some events encode bytes so)
type
Fn(cbor: @cbor.item) -> Union{#none, #some(List<Number>)}
expression
fn(cbor$0) =>
  match $0 {
    #bytes(bytes$1) =>
      #some($1),
    #array(items$2) =>
      @cbor.byte-items(items: $2, start: 0, end: @core.list-length(value: $2)),
    _ =>
      #none
  }
visibility
public
cbor.bytes (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E)
id: uqmTBKMZodeNskwTJvKuAb_LtojiEqjTOiyuhKE9PR4
content hash: 9nCqQkqFxNMPjTu-WhGFuAr24K3oDvt_tMm9s0abaL0