Antd.PointerKind (antd v0.4.1)

Copy Markdown View Source

What a pointer write points at: the :kind option of pointer_create, pointer_update and a pointer_prepare create or update.

  • :chunk — a chunk, such as the address data_put_public or file_put_public returns. The daemon's default when the option is left out.
  • :pointer — another pointer: a forwarding its owner can still change. Use pointer_transfer to hand a pointer over for good.

Results carry the daemon's kind string ("chunk", "pointer", or "unknown" for a kind the daemon does not know) and the raw kind_tag.

Summary

Functions

Serialize a t/0 atom to the wire string the daemon expects.

Types

t()

@type t() :: :chunk | :pointer

Functions

to_wire(atom)

@spec to_wire(t()) :: String.t()

Serialize a t/0 atom to the wire string the daemon expects.