Explorer

cbor.uint-bytes

description
The lowest count bytes of value, big endian
type
Fn(value: Number, count: Number) -> List<Number>
expression
fn(value$0, count$1) =>
  match @core.less-than(left: $1, right: 1) {
    true =>
      [],
    false =>
      @core.list-append(
        list: @cbor.uint-bytes(value: @core.shift-right(left: $0, right: 8), count: @core.minus(left: $1, right: 1)),
        item: @core.bit-and(left: $0, right: 255)
      )
  }
visibility
public
cbor.uint-bytes (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E)
id: OkJsrUvIT6SU8HLnMaZivDhNb0BZnkbFxPqKbhXW6qI
content hash: QMHj5KdimI5shYdgVsixHzetwyoS1y4ge1cm0IYmxK4