initMemoryView

inline fun <T : Any> initMemoryView(size: Int): MemoryView<T>


fun <T> initMemoryView(size: Int, dataType: DataType): MemoryView<T>

Creates a MemoryView based size and dataType.


fun <T> initMemoryView(    size: Int,     dataType: DataType,     init: (Int) -> T): MemoryView<T>

Create a MemoryView based size and dataType, where each elements will be initialized according to the given init function.