Liking cljdoc? Tell your friends :D

cljam.io.util.lsb.io-stream

Functions for reading/writing little-endian data using InputStream/OutputStream.

NOTE: This namespace is intended to be used only from within cljam, and should not be used outside cljam.

Functions for reading/writing little-endian data using InputStream/OutputStream.

NOTE: This namespace is intended to be used only from within cljam, and should
not be used outside cljam.
raw docstring

read-byteclj

(read-byte stream)

Reads 1 byte. Returns a byte value.

Reads 1 byte. Returns a byte value.
sourceraw docstring

read-bytesclj

(read-bytes stream length)
(read-bytes stream 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.
sourceraw docstring

read-doubleclj

(read-double stream)

Reads 8 bytes. Returns a double value.

Reads 8 bytes. Returns a double value.
sourceraw docstring

read-floatclj

(read-float stream)

Reads 4 bytes. Returns a float value.

Reads 4 bytes. Returns a float value.
sourceraw docstring

read-intclj

(read-int stream)

Reads 4 bytes. Returns an int value.

Reads 4 bytes. Returns an int value.
sourceraw docstring

read-longclj

(read-long stream)

Reads 8 bytes. Returns a long value.

Reads 8 bytes. Returns a long value. 
sourceraw docstring

read-null-terminated-stringclj

(read-null-terminated-string stream)

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

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

read-shortclj

(read-short stream)

Reads 2 bytes. Returns a short value.

Reads 2 bytes. Returns a short value.
sourceraw docstring

read-stringclj

(read-string stream length)

Reads 'length' bytes. Returns a String.

Reads 'length' bytes. Returns a String.
sourceraw docstring

read-ubyteclj

(read-ubyte stream)

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

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

read-uintclj

(read-uint stream)

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

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

read-ushortclj

(read-ushort stream)

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

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

skipclj

(skip stream length)

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

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

write-bytesclj

(write-bytes stream b)

Writes a byte-array.

Writes a byte-array.
sourceraw docstring

write-charclj

(write-char stream b)

Writes a 1-byte ascii character.

Writes a 1-byte ascii character.
sourceraw docstring

write-doubleclj

(write-double stream n)

Writes a 8-byte double value.

Writes a 8-byte double value.
sourceraw docstring

write-floatclj

(write-float stream n)

Writes a 4-byte float value.

Writes a 4-byte float value.
sourceraw docstring

write-intclj

(write-int stream n)

Writes a 4-byte integer value.

Writes a 4-byte integer value.
sourceraw docstring

write-longclj

(write-long stream n)

Writes an 8-byte long value.

Writes an 8-byte long value.
sourceraw docstring

write-shortclj

(write-short stream n)

Writes a 2-byte short value.

Writes a 2-byte short value.
sourceraw docstring

write-stringclj

(write-string stream s)

Writes a string as a sequence of ascii characters.

Writes a string as a sequence of ascii characters.
sourceraw docstring

write-ubyteclj

(write-ubyte stream b)

Writes 1 byte.

Writes 1 byte.
sourceraw docstring

write-uintclj

(write-uint stream n)

Writes a 4-byte unsigned integer value.

Writes a 4-byte unsigned integer value.
sourceraw docstring

write-ushortclj

(write-ushort stream n)

Writes a 2-byte unsigned short value.

Writes a 2-byte unsigned short value.
sourceraw docstring

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

× close