write

inline fun Memory.write(block: MemoryWriter.() -> Unit)

Uses the memory for write then releases the writer.

fun <T : Any> MemoryWriter.write(spec: MemorySpec<T>, offset: Int, value: T)

Writes the object value with spec starting from offset.