Liking cljdoc? Tell your friends :D

asami.durable.block.block-api

Defines the protocols for allocating an manipulating blocks

Defines the protocols for allocating an manipulating blocks
raw docstring

Blockclj/sprotocol

An abstraction over a block of raw binary data of fixed length

An abstraction over a block of raw binary data of fixed length

put-longs!clj/s

(put-longs! this offset len values)

Modifies the longs at a given offset within the block. Offset is in Longs.

Modifies the longs at a given offset within the block. Offset is in Longs.

get-bytesclj/s

(get-bytes this offset len)

Returns the bytes at a given offset within the block.

Returns the bytes at a given offset within the block.

put-byte!clj/s

(put-byte! this offset value)

Modifies the byte at a given offset within the block.

Modifies the byte at a given offset within the block.

put-long!clj/s

(put-long! this offset value)

Modifies the long at a given offset within the block. Offset is in Longs.

Modifies the long at a given offset within the block. Offset is in Longs.

get-intclj/s

(get-int this offset)

Returns the integer at a given offset within the block. Offset is in Integers.

Returns the integer at a given offset within the block. Offset is in Integers.

put-ints!clj/s

(put-ints! this offset len values)

Modifies the ints at a given offset within the block. Offset is in Integers.

Modifies the ints at a given offset within the block. Offset is in Integers.

put-bytes!clj/s

(put-bytes! this offset len values)

Modifies the bytes at a given offset within the block.

Modifies the bytes at a given offset within the block.

get-longsclj/s

(get-longs this offset len)

Returns the longs at a given offset within the block. Offset is in Longs.

Returns the longs at a given offset within the block. Offset is in Longs.

get-byteclj/s

(get-byte this offset)

Returns the byte at a given offset within the block.

Returns the byte at a given offset within the block.

put-block!clj/s

(put-block! this offset src)
(put-block! this offset src src-offset length)

Copies the contents of one block into this block.

Copies the contents of one block into this block.

get-intsclj/s

(get-ints this offset len)

Returns the ints at a given offset within the block. Offset is in Integers.

Returns the ints at a given offset within the block. Offset is in Integers.

get-longclj/s

(get-long this offset)

Returns the long at a given offset within the block. Offset is in Longs.

Returns the long at a given offset within the block. Offset is in Longs.

copy-over!clj/s

(copy-over! this src src-offset)

Replace the contents of this block with another (starting at an offset on the source).

Replace the contents of this block with another (starting at an offset on the source).

put-int!clj/s

(put-int! this offset value)

Modifies the integer at a given offset within the block. Offset is in Integers.

Modifies the integer at a given offset within the block. Offset is in Integers.

get-idclj/s

(get-id this)

Returns the ID of the block.

Returns the ID of the block.
sourceraw docstring

BlockManagerclj/sprotocol

A mutating object for allocating blocks

A mutating object for allocating blocks

allocate-block!clj/s

(allocate-block! this)

Allocate a new block from the manager's resources.

Allocate a new block from the manager's resources.

copy-block!clj/s

(copy-block! this block)

Allocates a new block, initialized with a copy of another block.

Allocates a new block, initialized with a copy of another block.

copy-to-txclj/s

(copy-to-tx this block)

Returns a block that is in the current transaction, possibly returning the current block

Returns a block that is in the current transaction, possibly returning the current block

get-blockclj/s

(get-block this id)

Returns the block associated with an ID.

Returns the block associated with an ID.

get-block-sizeclj/s

(get-block-size this)

Returns the size of blocks allocated by this manager

Returns the size of blocks allocated by this manager

write-blockclj/s

(write-block this block)

Writes a block into the managed resources. Flushing is not expected.

Writes a block into the managed resources. Flushing is not expected.
sourceraw docstring

CountedBlocksclj/sprotocol

get-block-countclj/s

(get-block-count this)

Returns the number of blocks that this object has allocated, or nil if not managed by this object.

Returns the number of blocks that this object has allocated, or nil if not managed by this object.
source

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

× close