(buffer x)
Coerces its argument into a java.nio.Buffer. If the argument is already a Buffer this is a no-op. Otherwise, return an appropriate buffer type. Implemented for byte array, char array, double array, float array, int array, long array, and short array.
Coerces its argument into a java.nio.Buffer. If the argument is already a Buffer this is a no-op. Otherwise, return an appropriate buffer type. Implemented for byte array, char array, double array, float array, int array, long array, and short array.
(buffer-nth x n)
(buffer-nth x n not-found)
Returns element n of a java.nio.Buffer. Does not change the position of the Buffer.
Returns element n of a java.nio.Buffer. Does not change the position of the Buffer.
(buffer-seq x)
Returns a seq that iterates over the elements in a java.nio.Buffer. Does not change the position of the Buffer.
Returns a seq that iterates over the elements in a java.nio.Buffer. Does not change the position of the Buffer.
(buffer-to-array x)
Returns an array representation of a java.nio.Buffer. Creates a new array (even for an array backed Buffer), and copies each element of the Buffer into the array, respecting the Buffer's limit. Does not change the position of the Buffer.
Returns an array representation of a java.nio.Buffer. Creates a new array (even for an array backed Buffer), and copies each element of the Buffer into the array, respecting the Buffer's limit. Does not change the position of the Buffer.
(byte-buffer x)
Coerces its argument into a java.nio.ByteBuffer. If the argument that is already a ByteBuffer this is a no-op. Implemented for byte array.
Coerces its argument into a java.nio.ByteBuffer. If the argument that is already a ByteBuffer this is a no-op. Implemented for byte array.
(byte-order buf)
Returns the byte order for buf as a keyword, either :big-endian or :little-endian.
Returns the byte order for buf as a keyword, either :big-endian or :little-endian.
(channel x)
Attempts to coerce its argument into an open java.nio.ByteChannel.
Default implementations are defined for ByteChannel, File, RandomAccessFile, Socket, and DatagramSocket arguments.
Should be used inside with-open to ensure the WritableByteChannel is properly closed.
Attempts to coerce its argument into an open java.nio.ByteChannel. Default implementations are defined for ByteChannel, File, RandomAccessFile, Socket, and DatagramSocket arguments. Should be used inside with-open to ensure the WritableByteChannel is properly closed.
(char-buffer x)
Coerces its argument into a java.nio.CharBuffer. If the argument that is already a CharBuffer this is a no-op. Implemented for byte array, ByteBuffer, char array, and CharSequence (which includes String).
Coerces its argument into a java.nio.CharBuffer. If the argument that is already a CharBuffer this is a no-op. Implemented for byte array, ByteBuffer, char array, and CharSequence (which includes String).
(double-buffer x)
Coerces its argument into a java.nio.DoubleBuffer. If the argument that is already a DoubleBuffer this is a no-op. Implemented for byte array, ByteBuffer, and double array.
Coerces its argument into a java.nio.DoubleBuffer. If the argument that is already a DoubleBuffer this is a no-op. Implemented for byte array, ByteBuffer, and double array.
(float-buffer x)
Coerces its argument into a java.nio.FloatBuffer. If the argument that is already a FloatBuffer this is a no-op. Implemented for byte array, ByteBuffer, and float array.
Coerces its argument into a java.nio.FloatBuffer. If the argument that is already a FloatBuffer this is a no-op. Implemented for byte array, ByteBuffer, and float array.
(int-buffer x)
Coerces its argument into a java.nio.IntBuffer. If the argument that is already a IntBuffer this is a no-op. Implemented for byte array, ByteBuffer, and int array.
Coerces its argument into a java.nio.IntBuffer. If the argument that is already a IntBuffer this is a no-op. Implemented for byte array, ByteBuffer, and int array.
(long-buffer x)
Coerces its argument into a java.nio.LongBuffer. If the argument that is already a LongBuffer this is a no-op. Implemented for byte array, ByteBuffer, and long array.
Coerces its argument into a java.nio.LongBuffer. If the argument that is already a LongBuffer this is a no-op. Implemented for byte array, ByteBuffer, and long array.
(mmap file & [offset length & {:as opts}])
Memory maps a file with optional offset and length arguments to map only a portion of the file. Accepts keyword :mode option for the mapping mode. Valid options are: :read-write, :read-only, :private. Implemented for String, File and FileChannel.
Memory maps a file with optional offset and length arguments to map only a portion of the file. Accepts keyword :mode option for the mapping mode. Valid options are: :read-write, :read-only, :private. Implemented for String, File and FileChannel.
(readable-channel x)
Attempts to coerce its argument into an open java.nio.ReadableByteChannel.
Default implementations are defined for ReadableByteChannel, ByteChannel, Pipe, InputStream, File, RandomAccessFile, Socket, and DatagramSocket arguments.
Should be used inside with-open to ensure the ReadableByteChannel is properly closed.
Attempts to coerce its argument into an open java.nio.ReadableByteChannel. Default implementations are defined for ReadableByteChannel, ByteChannel, Pipe, InputStream, File, RandomAccessFile, Socket, and DatagramSocket arguments. Should be used inside with-open to ensure the ReadableByteChannel is properly closed.
(set-byte-order! buf order)
Sets the byte order for buf, order should be either :big-endian or :little-endian.
Sets the byte order for buf, order should be either :big-endian or :little-endian.
(short-buffer x)
Coerces its argument into a java.nio.ShortBuffer. If the argument that is already a Short this is a no-op. Implemented for byte array, ByteBuffer, and short array.
Coerces its argument into a java.nio.ShortBuffer. If the argument that is already a Short this is a no-op. Implemented for byte array, ByteBuffer, and short array.
(writable-channel x)
Attempts to coerce its argument into an open java.nio.WritableByteChannel.
Default implementations are defined for WritableByteChannel, ByteChannel, Pipe, OutputStream, File, RandomAccessFile, Socket, and DatagramSocket arguments.
Should be used inside with-open to ensure the WritableByteChannel is properly closed.
Attempts to coerce its argument into an open java.nio.WritableByteChannel. Default implementations are defined for WritableByteChannel, ByteChannel, Pipe, OutputStream, File, RandomAccessFile, Socket, and DatagramSocket arguments. Should be used inside with-open to ensure the WritableByteChannel is properly closed.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close