Functions for reading little-endian data using DataInput.
NOTE: This namespace is intended to be used only from within cljam, and should not be used outside cljam.
Functions for reading little-endian data using DataInput. NOTE: This namespace is intended to be used only from within cljam, and should not be used outside cljam.
(read-byte input)
Reads 1 byte. Returns a byte value.
Reads 1 byte. Returns a byte value.
(read-bytes input length)
(read-bytes input 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.
(read-double input)
Reads 8 bytes. Returns a double value.
Reads 8 bytes. Returns a double value.
(read-float input)
Reads 4 bytes. Returns a float value.
Reads 4 bytes. Returns a float value.
(read-int input)
Reads 4 bytes. Returns an int value.
Reads 4 bytes. Returns an int value.
(read-long input)
Reads 8 bytes. Returns a long value.
Reads 8 bytes. Returns a long value.
(read-null-terminated-string input)
Reads until next null character. Returns a String without the null.
Reads until next null character. Returns a String without the null.
(read-short input)
Reads 2 bytes. Returns a short value.
Reads 2 bytes. Returns a short value.
(read-string input length)
Reads 'length' bytes. Returns a String.
Reads 'length' bytes. Returns a String.
(read-ubyte input)
Reads 1 byte. Returns an unsigned byte value as long.
Reads 1 byte. Returns an unsigned byte value as long.
(read-uint input)
Reads 4 bytes. Returns an unsigned int value as long.
Reads 4 bytes. Returns an unsigned int value as long.
(read-ushort input)
Reads 2 bytes. Returns an unsigned short value as long.
Reads 2 bytes. Returns an unsigned short value as long.
(skip input length)
Skips over 'length' bytes of data, discarding the skipped bytes.
Skips over 'length' bytes of data, discarding the skipped bytes.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close