Un-deprecate float reading and writing

This commit is contained in:
Iaroslav Postovalov 2020-12-09 14:45:12 +07:00
parent 491e2ac7a6
commit 3adbec15cb
No known key found for this signature in database
GPG Key ID: 46E15E4A31B3BCD7
2 changed files with 0 additions and 3 deletions

View File

@ -57,7 +57,6 @@ public interface MemoryReader {
/** /**
* Reads [Float] at certain [offset]. * 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 public fun readFloat(offset: Int): Float
/** /**
@ -114,7 +113,6 @@ public interface MemoryWriter {
/** /**
* Writes [Float] at certain [offset]. * 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) public fun writeFloat(offset: Int, value: Float)
/** /**

View File

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