Scoop API

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 are
2// relocated across allocation; raw sources must remain stable until copied.
3@Unsafe
4@Intrinsic("string_from_byte_prefix_unchecked")
5internal fun coreStringFromBytePrefixUnchecked(bytes: MutableArray<UInt8>, length: Long): String
7@Unsafe
8@Intrinsic("string_copy_to_bytes_unchecked")
9internal fun coreStringCopyToBytesUnchecked(value: String, bytes: MutableArray<UInt8>, start: Long)
11@Unsafe
12@Intrinsic("bytes_copy_prefix_unchecked")
13internal fun coreBytesCopyPrefixUnchecked(
14 source: MutableArray<UInt8>,
15 target: MutableArray<UInt8>,
16 length: Long
19@Unsafe
20@Intrinsic("bytes_copy_raw_unchecked")
21internal fun coreBytesCopyRawUnchecked(
22 source: Ptr<Byte>,
23 length: Long,
24 target: MutableArray<UInt8>,
25 start: Long