-
Effekt Library
- bytearray
- ByteArray
- allocate
- size
- unsafeGet
- unsafeSet
- bytearray
- resize
- foreach
- foreach
- foreachIndex
- foreachIndex
- fromString
- toString
- compareByteArrayImpl
- compareByteArray
- compareStringBytes
- each
- feed
- collect
- returning
- collect
- bytearray Jump to source: libraries/common/bytearray.effekt
- ByteArray
- allocate
(size: Int): ByteArray / {} - size
(arr: ByteArray): Int / {} - unsafeGet
(arr: ByteArray, index: Int): Byte / {} - unsafeSet
(arr: ByteArray, index: Int, value: Byte): Unit / {} - bytearray
(size: Int, init: Byte): ByteArray / {} - resize
(source: ByteArray, size: Int): ByteArray / {} - foreach
(arr: ByteArray) { action: (Byte) => Unit }: Unit / {} - foreach
(arr: ByteArray) { action: (Byte){Control} => Unit }: Unit / {} - foreachIndex
(arr: ByteArray) { action: (Int, Byte) => Unit }: Unit / {} - foreachIndex
(arr: ByteArray) { action: (Int, Byte){Control} => Unit }: Unit / {} - fromString
(str: String): ByteArray / {} - toString
(arr: ByteArray): String / {} - compareByteArrayImpl
(b1: ByteArray, b2: ByteArray): Int / {} - compareByteArray
(b1: ByteArray, b2: ByteArray): Ordering / {} - compareStringBytes
(left: String, right: String): Ordering / {} - each
(bytes: ByteArray): Unit / {emit[Byte]} - feed
[R] (bytes: ByteArray) { reader: => R / {read[Byte]} }: R / {} - collect
{ stream: => Unit / {emit[Byte]} }: ByteArray / {} - returning
- collect
[R] { stream: => R / {emit[Byte]} }: Tuple2[R, ByteArray] / {}
Example usage: examples/stdlib/bytearray
Allocates a new bytearray with the given `size`, its values are undefined.
Creates a new ByteArray of size `size` filled with the value `init`
Turns `bytes` into a producer of a push stream by emitting each contained value from 0 to length - 1.