Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 819 Bytes

primitives.md

File metadata and controls

37 lines (23 loc) · 819 Bytes

Primitives

IPFN has idea of primitives inspired by ECMAScript.

Struct

Struct, namespace – directory in a tree structure, Object in ECMAScript.

Boolean

True of false.

String

It is different from simple byte array.

Encoding

Property most useful for inter-language operability and auto-generated code.

  • hex
  • utf8
  • utf16 — Basic String in ECMAScript
  • base64

Number

  • i8, u8 – Signed and Unsigned 8 bit integer
  • i16, u16 – Signed and Unsigned 16 bit integer
  • i32, u32 – Signed and Unsigned 32 bit integer
  • f1616 bit floating point number (mixed precision)
  • f3232 bit floating point number
  • f6464 bit floating point number — Basic Number in ECMAScript

BigInt

Dynamic size integer.