scoop:scoop.core:0.1.0
src/byte_copies.scoop
Selected production source · src/byte_copies.scoop
1
// Callers establish valid, nonoverlapping byte ranges. Managed sources are2
// relocated across allocation; raw sources must remain stable until copied.3
@Unsafe4
@Intrinsic("string_from_byte_prefix_unchecked")5
internal fun coreStringFromBytePrefixUnchecked(bytes: MutableArray<UInt8>, length: Long): String7
@Unsafe8
@Intrinsic("string_copy_to_bytes_unchecked")9
internal fun coreStringCopyToBytesUnchecked(value: String, bytes: MutableArray<UInt8>, start: Long)11
@Unsafe12
@Intrinsic("bytes_copy_prefix_unchecked")13
internal fun coreBytesCopyPrefixUnchecked(14
source: MutableArray<UInt8>,15
target: MutableArray<UInt8>,16
length: Long17
)19
@Unsafe20
@Intrinsic("bytes_copy_raw_unchecked")21
internal fun coreBytesCopyRawUnchecked(22
source: Ptr<Byte>,23
length: Long,24
target: MutableArray<UInt8>,25
start: Long26
)