Liking cljdoc? Tell your friends :D

cljam.io.util.lsb

Reading/writing functions of stream and buffer for little-endian data.

Reading/writing functions of stream and buffer for little-endian data.
raw docstring

gen-byte-bufferclj

(gen-byte-buffer)
(gen-byte-buffer size)

Generates a new java.nio.ByteBuffer instance with little-endian byte order. The default buffer size is 8.

Generates a new `java.nio.ByteBuffer` instance with little-endian byte order.
The default buffer size is 8.
sourceraw docstring

LSBReadablecljprotocol

Provides feature of reading little-endian values.

Provides feature of reading little-endian values.

read-byteclj

(read-byte this)

Reads 1 byte. Returns a byte value.

Reads 1 byte. Returns a byte value.

read-shortclj

(read-short this)

Reads 2 bytes. Returns a short value.

Reads 2 bytes. Returns a short value.

read-null-terminated-stringclj

(read-null-terminated-string this)

Reads until next null character. Returns a String without the null.

Reads until next null character. Returns a String without the null.

read-bytesclj

(read-bytes this length)
(read-bytes this buffer offset length)

Reads 'length' bytes to buffer starting from offset bytes. Returns a new byte-array if called without buffer.

Reads 'length' bytes to buffer starting from offset bytes. Returns a new byte-array if called without buffer.

skipclj

(skip this length)

Skips over 'length' bytes of data, discarding the skipped bytes.

Skips over 'length' bytes of data, discarding the skipped bytes.

read-doubleclj

(read-double this)

Reads 8 bytes. Returns a double value.

Reads 8 bytes. Returns a double value.

read-intclj

(read-int this)

Reads 4 bytes. Returns an int value.

Reads 4 bytes. Returns an int value.

read-ushortclj

(read-ushort this)

Reads 2 bytes. Returns an unsigned short value as long.

Reads 2 bytes. Returns an unsigned short value as long.

read-stringclj

(read-string this length)

Reads 'length' bytes. Returns a String.

Reads 'length' bytes. Returns a String.

read-ubyteclj

(read-ubyte this)

Reads 1 byte. Returns an unsigned byte value as long.

Reads 1 byte. Returns an unsigned byte value as long.

read-longclj

(read-long this)

Reads 8 bytes. Returns a long value.

Reads 8 bytes. Returns a long value. 

read-uintclj

(read-uint this)

Reads 4 bytes. Returns an unsigned int value as long.

Reads 4 bytes. Returns an unsigned int value as long.

read-floatclj

(read-float this)

Reads 4 bytes. Returns a float value.

Reads 4 bytes. Returns a float value.
sourceraw docstring

LSBWritablecljprotocol

Provides feature of writing little-endian values.

Provides feature of writing little-endian values.

write-ubyteclj

(write-ubyte this n)

Writes 1 byte.

Writes 1 byte.

write-longclj

(write-long this n)

Writes an 8-byte long value.

Writes an 8-byte long value.

write-bytesclj

(write-bytes this b)

Writes a byte-array.

Writes a byte-array.

write-ushortclj

(write-ushort this n)

Writes a 2-byte unsigned short value.

Writes a 2-byte unsigned short value.

write-charclj

(write-char this n)

Writes a 1-byte ascii character.

Writes a 1-byte ascii character.

write-uintclj

(write-uint this n)

Writes a 4-byte unsigned integer value.

Writes a 4-byte unsigned integer value.

write-stringclj

(write-string this s)

Writes a string as a sequence of ascii characters.

Writes a string as a sequence of ascii characters.

write-floatclj

(write-float this n)

Writes a 4-byte float value.

Writes a 4-byte float value.

write-shortclj

(write-short this n)

Writes a 2-byte short value.

Writes a 2-byte short value.

write-intclj

(write-int this n)

Writes a 4-byte integer value.

Writes a 4-byte integer value.
sourceraw docstring

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

× close