object Buffer
- Alphabetic
- By Inheritance
- Buffer
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
byte(chunk: Chunk[Byte])(implicit trace: Trace): UIO[ByteBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
byte(capacity: Int)(implicit trace: Trace): UIO[ByteBuffer]
Allocates a byte buffer backed by a new array.
Allocates a byte buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of bytes to allocate.
-
def
byteDirect(capacity: Int)(implicit trace: Trace): UIO[ByteBuffer]
Allocates a direct byte buffer.
Allocates a direct byte buffer.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of bytes to allocate.
-
def
byteFromJava(javaBuffer: java.nio.ByteBuffer): ByteBuffer
Wraps an existing Java
ByteBuffer.Wraps an existing Java
ByteBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
def
char(charSequence: CharSequence)(implicit trace: Trace): UIO[CharBuffer]
Creates a read-only character buffer wrapping a character sequence.
Creates a read-only character buffer wrapping a character sequence.
The new buffer's capacity and limit will be
charSequence.lengthand its position will be 0.- charSequence
The characters to wrap.
-
def
char(charSequence: CharSequence, start: Int, end: Int)(implicit trace: Trace): UIO[CharBuffer]
Creates a read-only character buffer wrapping a character sequence.
Creates a read-only character buffer wrapping a character sequence.
The new buffer's capacity will be
charSequence.length, its position will bestartand its limit will beend.Dies with
IndexOutOfBoundsExceptionifstartorendare out of bounds.- charSequence
The characters to wrap.
- start
must be >= 0 and <= capacity
- end
must be >= start and <= capacity
-
def
char(chunk: Chunk[Char])(implicit trace: Trace): UIO[CharBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
char(capacity: Int)(implicit trace: Trace): UIO[CharBuffer]
Allocates a char buffer backed by a new array.
Allocates a char buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of characters to allocate.
-
def
charFromJava(javaBuffer: java.nio.CharBuffer): CharBuffer
Wraps an existing Java
CharBuffer.Wraps an existing Java
CharBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
double(chunk: Chunk[Double])(implicit trace: Trace): UIO[DoubleBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
double(capacity: Int)(implicit trace: Trace): UIO[DoubleBuffer]
Allocates an double buffer backed by a new array.
Allocates an double buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of doubles to allocate.
-
def
doubleFromJava(javaBuffer: java.nio.DoubleBuffer): DoubleBuffer
Wraps an existing Java
DoubleBuffer.Wraps an existing Java
DoubleBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
float(chunk: Chunk[Float])(implicit trace: Trace): UIO[FloatBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
float(capacity: Int)(implicit trace: Trace): UIO[FloatBuffer]
Allocates a float buffer backed by a new array.
Allocates a float buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of floats to allocate.
-
def
floatFromJava(javaBuffer: java.nio.FloatBuffer): FloatBuffer
Wraps an existing Java
FloatBuffer.Wraps an existing Java
FloatBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
int(chunk: Chunk[Int])(implicit trace: Trace): UIO[IntBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
int(capacity: Int)(implicit trace: Trace): UIO[IntBuffer]
Allocates an int buffer backed by a new array.
Allocates an int buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of ints to allocate.
-
def
intFromJava(javaBuffer: java.nio.IntBuffer): IntBuffer
Wraps an existing Java
IntBuffer.Wraps an existing Java
IntBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
long(chunk: Chunk[Long])(implicit trace: Trace): UIO[LongBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
long(capacity: Int)(implicit trace: Trace): UIO[LongBuffer]
Allocates a long buffer backed by a new array.
Allocates a long buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of longs to allocate.
-
def
longFromJava(javaBuffer: java.nio.LongBuffer): LongBuffer
Wraps an existing Java
LongBuffer.Wraps an existing Java
LongBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
short(chunk: Chunk[Short])(implicit trace: Trace): UIO[ShortBuffer]
Creates a new array-backed buffer containing data copied from a chunk.
Creates a new array-backed buffer containing data copied from a chunk.
The new buffer will have a capacity equal to the chunk length, its position will be 0 and its limit set to the capacity.
- chunk
The data to copy into the new buffer.
-
def
short(capacity: Int)(implicit trace: Trace): UIO[ShortBuffer]
Allocates a short buffer backed by a new array.
Allocates a short buffer backed by a new array.
The new buffer's position will be 0, and its limit will be its capacity.
Dies with
IllegalArgumentExceptionifcapacityis negative.- capacity
The number of shorts to allocate.
-
def
shortFromJava(javaBuffer: java.nio.ShortBuffer): ShortBuffer
Wraps an existing Java
ShortBuffer.Wraps an existing Java
ShortBuffer.This is only useful for inter-operating with Java APIs that provide Java byte buffers.
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()