Memory
Deprecated
We're migrating to the new kotlinx-io library. This declaration is deprecated and will be removed in Ktor 4.0.0 If you have any problems with migration, please contact us in https://youtrack.jetbrains.com/issue/KTOR-6030/Migrate-to-new-kotlinx.io-library
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.
Instance of this class has no additional state except the bytes themselves.
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.
Instance of this class has no additional state except the bytes themselves.
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.
Instance of this class has no additional state except the bytes themselves.
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.
Instance of this class has no additional state except the bytes themselves.
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.
Instance of this class has no additional state except the bytes themselves.
Functions
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.
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 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)
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)