refs #35 refac to get caching out of Obj; it is decoder/encoder matter now

This commit is contained in:
sergeych committed 2025-07-19 14:19:50 +03:00
1 parent 405ff2ec2b
commit 20181c63a1
4 files changed
+70 -68

No files matched your search

@@ -65,8 +65,10 @@ open class LynonEncoder(val bout: BitOutput, val settings: LynonSettings = Lynon
bout.putBits(type.ordinal.toULong(), 4)
}
suspend fun encodeObj(scope: Scope, obj: Obj) {
suspend fun encodeObject(scope: Scope, obj: Obj) {
encodeCached(obj) {
obj.serialize(scope, this, null)
}
}
fun encodeBinaryData(data: ByteArray) {