mirror of
https://github.com/irmen/prog8.git
synced 2024-12-27 20:33:39 +00:00
20 lines
493 B
Kotlin
20 lines
493 B
Kotlin
package prog8tests.vm.helpers
|
|
|
|
import prog8.code.core.*
|
|
|
|
|
|
internal object DummyMemsizer : IMemSizer {
|
|
override fun memorySize(dt: DataType) = 0
|
|
override fun memorySize(arrayDt: DataType, numElements: Int) = 0
|
|
}
|
|
|
|
internal object DummyStringEncoder : IStringEncoding {
|
|
override fun encodeString(str: String, encoding: Encoding): List<UByte> {
|
|
return emptyList()
|
|
}
|
|
|
|
override fun decodeString(bytes: List<UByte>, encoding: Encoding): String {
|
|
return ""
|
|
}
|
|
}
|