-
Effekt Library
- bytearray
- ByteArray
- allocate
- size
- unsafeGet
- unsafeSet
- bytearray
- resize
- foreach
- foreach
- foreachIndex
- foreachIndex
- fromString
- toString
- compareByteArrayImpl
- compareByteArray
- compareStringBytes
- 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 / {}
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`