Core namespace for handling views.
See README for an overview.
Core namespace for handling views. See README for an overview.
Buffers are the platform representation of a byte array which can be wrapped in a view
and manipulated by using the core clunk.vendor.binf namespaces. They represent a raw, fixed-size
chunk of memory.
On the JVM, a buffer is indeed a byte-array.
In JS, it is either a js/ArrayBuffer or its sibling js/SharedArrayBuffer.
Buffers are the platform representation of a byte array which can be wrapped in a view and manipulated by using the core `clunk.vendor.binf` namespaces. They represent a raw, fixed-size chunk of memory. On the JVM, a buffer is indeed a `byte-array`. In JS, it is either a `js/ArrayBuffer` or its sibling `js/SharedArrayBuffer`.
Handling integers (maximum 32-bits), miscellaneous coercions.
64-bit integers are handled in clunk.vendor.binf.int64.
Handling integers (maximum 32-bits), miscellaneous coercions. 64-bit integers are handled in `clunk.vendor.binf.int64`.
Protocols related to views.
This namespace should be relevant only if a new type needs to implement those. The common user should not have to bother.
Those functions are described in the core clunk.vendor.binf namespace as well as in the README file.
Depending on the type, not all protocols must be implemented. For instance, a stream-like type
might not be seekable and might implement only IRelative* protocols and not IAbsolute* ones.
Protocols related to views. This namespace should be relevant only if a new type needs to implement those. The common user should not have to bother. Those functions are described in the core `clunk.vendor.binf` namespace as well as in the README file. Depending on the type, not all protocols must be implemented. For instance, a stream-like type might not be seekable and might implement only `IRelative*` protocols and not `IAbsolute*` ones.
Decoding a string directly to a buffer and vice-versa.
Decoding a string directly to a buffer and vice-versa.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |