Explorer

cbor.item

description
A CBOR data item (RFC 8949) read by cbor.read. integer is major types 0 and 1, simple is major type 7 except floats (20 false, 21 true, 22 null). A float keeps its additional information (25 half, 26 single, 27 double) and bits
type
Type
expression
Union{
  #integer(Number),
  #bytes(List<Number>),
  #text(String),
  #array(List<@cbor.item>),
  #map(List<@cbor.entry>),
  #tagged(Record{tag: Number, value: @cbor.item}),
  #simple(Number),
  #float(Record{info: Number, bits: Number})
}
visibility
public
cbor.item (project cbor, branch main, snapshot 5bvML2Im-osGmgnKJsp0FwmfSMONephnrgdWQboV3-E)
id: GIxBvQDRq2zAOPXm3ireuhSftSy9ddNdclv3CMy8yTM
content hash: ndpQHcGEVcIsdbNCsqqRC_AMrulBs0VxocRLBQ5mwo0