DataBuffer

interface DataBuffer 
<T> : Iterable 
, Releasable 
, Closeable 
Known direct subclasses

Default implementation of DataBuffer.


Interface for a buffer of typed data.

Summary

Public functions

Unit
close ()

Releases the data buffer, for use in try-with-resources.

T
get (position:  Int )

Returns an element on specified position.

Int
Boolean

This function is deprecated.

release is idempotent, and so is safe to call multiple times

( Mutable ) Iterator <T!>!
Unit
release ()

Releases resources used by the buffer.

( Mutable ) Iterator <T!>!

In order to use this iterator it should be supported by particular DataBuffer .

Inherited functions

Public functions

close

fun  close 
():  Unit 

Releases the data buffer, for use in try-with-resources.

Both close and release shall have identical semantics, and are idempotent.

get

fun  get 
(position:  Int 
): T

Returns an element on specified position.

getCount

fun  getCount 
():  Int 

isClosed

fun    isClosed 
 
 
():  Boolean 

iterator

fun  iterator 
(): ( Mutable 
) Iterator 
<T!>!

release

fun  release 
():  Unit 

Releases resources used by the buffer. This method is idempotent.

singleRefIterator

fun  singleRefIterator 
(): ( Mutable 
) Iterator 
<T!>!

In order to use this iterator it should be supported by particular DataBuffer . Be careful: there will be single reference while iterating. If you are not sure - DO NOT USE this iterator.

Design a Mobile Site
View Site in Mobile | Classic
Share by: