Liking cljdoc? Tell your friends :D

helins.binf.protocol

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 helins.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 `helins.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.
raw docstring

IAbsoluteReaderclj/sprotocol

Reading primitive values at an absolute position, without disturbing the current one.

Reading primitive values at an absolute position, without disturbing the current one.

ra-u8clj/s

(ra-u8 view position)

ra-i32clj/s

(ra-i32 view position)

ra-f64clj/s

(ra-f64 view position)

ra-stringclj/s

(ra-string view decoder position n-byte)

ra-f32clj/s

(ra-f32 view position)

ra-u64clj/s

(ra-u64 view position)

ra-u16clj/s

(ra-u16 view position)

ra-i8clj/s

(ra-i8 view position)

ra-i64clj/s

(ra-i64 view position)

ra-bufferclj/s

(ra-buffer view position n-byte buffer offset)

ra-u32clj/s

(ra-u32 view position)

ra-i16clj/s

(ra-i16 view position)
sourceraw docstring

IAbsoluteWriterclj/sprotocol

Writing primitive values at an absolute position, without disturbing the current one.

When writing integers, sign is irrelevant and truncation is automatic between all integers that are <= 32-bits.

Writing primitive values at an absolute position, without disturbing the current one.

When writing integers, sign is irrelevant and truncation is automatic between all integers that
are <= 32-bits.

wa-b16clj/s

(wa-b16 view position int)

wa-b32clj/s

(wa-b32 view position int)

wa-b64clj/s

(wa-b64 view position int)

wa-b8clj/s

(wa-b8 view position int)

wa-bufferclj/s

(wa-buffer view position buffer offset n-byte)

wa-f32clj/s

(wa-f32 view position floating)

wa-f64clj/s

(wa-f64 view position floating)

wa-stringclj/s

(wa-string view position string)
sourceraw docstring

IBackingBufferclj/sprotocol

Some views operates over a buffer which can be directly accessed using this protocol.

Some views operates over a buffer which can be directly accessed using this protocol.

backing-bufferclj/s

(backing-buffer this)

buffer-offsetclj/s

(buffer-offset this)
sourceraw docstring

IEndianessclj/sprotocol

Retrieving or modifying the endianess.

Retrieving or modifying the endianess.

endian-getclj/s

(endian-get view)

endian-setclj/s

(endian-set view endianess)
sourceraw docstring

IGrowclj/sprotocol

Growing a view means returning a new view with a higher capacity, copying the initial one.

Growing a view means returning a new view with a higher capacity, copying the initial one.

growclj/s

(grow this n-additional-byte)
sourceraw docstring

IPositionclj/sprotocol

Handling the position of a view if it is seekable.

Handling the position of a view if it is seekable.

limitclj/s

(limit view)

positionclj/s

(position view)

seekclj/s

(seek view position)

skipclj/s

(skip view n-byte)
sourceraw docstring

IRelativeReaderclj/sprotocol

Reading primitive values from the current position, advancing it as needed. For instance, reading a 32-bit integer will advance the current position by 4 bytes.

Reading primitive values from the current position, advancing it as needed. For instance,
reading a 32-bit integer will advance the current position by 4 bytes.

rr-i8clj/s

(rr-i8 view)

rr-i32clj/s

(rr-i32 view)

rr-i64clj/s

(rr-i64 view)

rr-bufferclj/s

(rr-buffer view n-byte buffer offset)

rr-u8clj/s

(rr-u8 view)

rr-u16clj/s

(rr-u16 view)

rr-f32clj/s

(rr-f32 view)

rr-f64clj/s

(rr-f64 view)

rr-stringclj/s

(rr-string view decoder n-byte)

rr-u64clj/s

(rr-u64 view)

rr-i16clj/s

(rr-i16 view)

rr-u32clj/s

(rr-u32 view)
sourceraw docstring

IRelativeWriterclj/sprotocol

Writing primitive values to the current position, advancing it as needed. For instance, reading a 64-bit float will advance the current position by 8 bytes.

When writing integers, sign is irrelevant and truncation is automatic between all integers that are <= 32-bits.

Writing primitive values to the current position, advancing it as needed. For instance,
reading a 64-bit float will advance the current position by 8 bytes.

When writing integers, sign is irrelevant and truncation is automatic between all integers that
are <= 32-bits.

wr-b16clj/s

(wr-b16 view int)

wr-b32clj/s

(wr-b32 view int)

wr-b64clj/s

(wr-b64 view int)

wr-b8clj/s

(wr-b8 view int)

wr-bufferclj/s

(wr-buffer view buffer offset n-byte)

wr-f32clj/s

(wr-f32 view floating)

wr-f64clj/s

(wr-f64 view floating)

wr-stringclj/s

(wr-string view string)
sourceraw docstring

IViewableclj/sprotocol

Building a new view.

Building a new view.

viewclj/s

(view viewable)
(view viewable offset)
(view viewable offset n-byte)
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close