Add tests of kmath-memory and make all the memory operations on all the platforms use little-endian byte order #163

Closed
CommanderTvis wants to merge 4 commits from unify-endianness into dev
2 changed files with 0 additions and 3 deletions
Showing only changes of commit 3adbec15cb - Show all commits

View File

@ -57,7 +57,6 @@ public interface MemoryReader {
/**
* Reads [Float] at certain [offset].
*/
@Deprecated("readFloat and writeFloat functions work unexpectedly on JS platform, since because their results are widened when used. Consider using readDouble and writeDouble.")
public fun readFloat(offset: Int): Float
/**
@ -114,7 +113,6 @@ public interface MemoryWriter {
/**
* Writes [Float] at certain [offset].
*/
@Deprecated("readFloat and writeFloat functions work unexpectedly on JS platform, since because their results are widened when used. Consider using readDouble and writeDouble.")
public fun writeFloat(offset: Int, value: Float)
/**

View File

@ -50,7 +50,6 @@ internal class MemoryTest {
assertEquals(-50000333595959L, mem.read { readLong(16) })
}
@Suppress("DEPRECATION")
@Test
fun rwFloat() {
val mem = Memory.allocate(64)