Package-level declarations
Types
Represents a linear range of bytes. All operations are guarded by range-checks by default however at some platforms they could be disabled in release builds.
Represents a linear range of bytes. All operations are guarded by range-checks by default however at some platforms they could be disabled in release builds.
Represents a linear range of bytes. All operations are guarded by range-checks by default however at some platforms they could be disabled in release builds.
Represents a linear range of bytes. All operations are guarded by range-checks by default however at some platforms they could be disabled in release builds.
Represents a linear range of bytes. All operations are guarded by range-checks by default however at some platforms they could be disabled in release builds.
Properties
Functions
Allocate memory range having the specified size in bytes and provide an instance of Memory view for this range. Please note that depending of the placement type (e.g. scoped or global) this memory instance may require explicit release using free on the same placement. In particular, instances created inside of memScoped block do not require to be released explicitly but once the scope is leaved, all produced instances should be discarded and should be never used after the scope. On the contrary instances created using nativeHeap do require release via nativeHeap.free.
Copies bytes from this memory range from the specified offset and length to the destination.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset. Copying bytes from a memory to itself is allowed.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset. Copying bytes from a memory to itself is allowed.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset.
Copies bytes from this memory range from the specified offset to the destination buffer.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset. Copying bytes from a memory to itself is allowed.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset.
Copy content bytes to the memory addressed by the destination pointer with the specified destinationOffset in bytes.
Copy length bytes to the destination at the specified destinationOffset from the memory addressed by this pointer with offset in bytes.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset. Copying bytes from a memory to itself is allowed.
Copies bytes from this memory range from the specified offset and length to the destination at destinationOffset.
Release resources that the memory instance is holding. This function should be only used for memory instances that are produced by allocMemory function otherwise an undefined behaviour may occur including crash or data corruption.
Copies bytes from this memory range from the specified offset and count to the destination at destinationOffset.
Copies unsigned shorts integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short signed 64bit floating point number in the network byte order (Big Endian)
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short signed 32bit floating point number in the network byte order (Big Endian)
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read regular signed 32bit integer in the network byte order (Big Endian)
Copies long integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies regular integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short signed 64bit integer in the network byte order (Big Endian)
Copies short integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies short integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies short integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies short integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short signed 16bit integer in the network byte order (Big Endian)
Copies unsigned shorts integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Copies unsigned integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read regular unsigned 32bit integer in the network byte order (Big Endian)
Copies unsigned long integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short signed 64bit integer in the network byte order (Big Endian)
Copies unsigned shorts integers from this memory range from the specified offset and count to the destination at destinationOffset interpreting numbers in the network order (Big Endian).
Read short unsigned 16bit integer in the network byte order (Big Endian)
Copy byte from this buffer moving it's position to the destination at offset.
Reverse number's byte order
Reverse number's byte order
Reverse number's byte order
Reverse number's byte order
Returns memory's subrange. On some platforms it could do range checks but it is not guaranteed to be safe. It also could lead to memory allocations on some platforms.
Returns memory's subrange. On some platforms it could do range checks but it is not guaranteed to be safe. It also could lead to memory allocations on some platforms.
Copies unsigned shorts integers from the source array at sourceOffset to this memory at the specified offset.
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short signed 64bit floating point number in the network byte order (Big Endian)
Write short signed 64bit floating point number in the network byte order (Big Endian)
Write short signed 64bit floating point number in the network byte order (Big Endian)
Write short signed 64bit floating point number in the network byte order (Big Endian)
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies floating point numbers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short signed 32bit floating point number in the network byte order (Big Endian)
Write short signed 32bit floating point number in the network byte order (Big Endian)
Write short signed 32bit floating point number in the network byte order (Big Endian)
Write short signed 32bit floating point number in the network byte order (Big Endian)
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write regular signed 32bit integer in the network byte order (Big Endian)
Write regular signed 32bit integer in the network byte order (Big Endian)
Write regular signed 32bit integer in the network byte order (Big Endian)
Write regular signed 32bit integer in the network byte order (Big Endian)
Copies long integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies regular integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short signed 64bit integer in the network byte order (Big Endian)
write short signed 64bit integer in the network byte order (Big Endian)
Write short signed 64bit integer in the network byte order (Big Endian)
Write short signed 64bit integer in the network byte order (Big Endian)
Write short signed 64bit integer in the network byte order (Big Endian)
Copies short integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies short integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies short integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Copies short integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short signed 16bit integer in the network byte order (Big Endian)
Write short signed 16bit integer in the network byte order (Big Endian)
Write short signed 16bit integer in the network byte order (Big Endian)
Write short signed 16bit integer in the network byte order (Big Endian)
Copies unsigned shorts integers from the source array at sourceOffset to this memory at the specified offset.
Copies unsigned integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write regular unsigned 32bit integer in the network byte order (Big Endian)
Copies unsigned long integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short signed 64bit integer in the network byte order (Big Endian)
Copies unsigned shorts integers from the source array at sourceOffset to this memory at the specified offset interpreting numbers in the network order (Big Endian).
Write short unsigned 16bit integer in the network byte order (Big Endian)
TODO KTOR-1673: Solve design problems
Execute block of code providing a temporary instance of Memory view of this byte array range starting at the specified offset and having the specified bytes length. By default, if neither offset nor length specified, the whole array is used. An instance of Memory provided into the block should be never captured and used outside of lambda.
Execute block of code providing a temporary instance of Memory view of this byte array range starting at the specified offset and having the specified bytes length. By default, if neither offset nor length specified, the whole array is used. An instance of Memory provided into the block should be never captured and used outside of lambda.
Execute block of code providing a temporary instance of Memory view of this byte array range starting at the specified offset and having the specified bytes length. By default, if neither offset nor length specified, the whole array is used. An instance of Memory provided into the block should be never captured and used outside of lambda.