refs #35 started user class serialization; started MP compression
This commit is contained in:
1 parent
77f9191387
commit
23dafff453
10 files changed
+2426
-25
No files matched your search
@@ -0,0 +1,14 @@
|
||||
package net.sergeych.lynon
|
||||
|
||||
/**
|
||||
* Variant of [LynonEncoder] that writes to embedded [MemoryBitOutput]
|
||||
*/
|
||||
class LynonPacker(bout: MemoryBitOutput = MemoryBitOutput(), settings: LynonSettings = LynonSettings.default)
|
||||
: LynonEncoder(bout, settings) {
|
||||
fun toUByteArray(): UByteArray = (bout as MemoryBitOutput).toUByteArray()
|
||||
}
|
||||
|
||||
/**
|
||||
* Variant of [LynonDecoder] that reads from a given `source` using [MemoryBitInput]
|
||||
*/
|
||||
class LynonUnpacker(source: UByteArray) : LynonDecoder(MemoryBitInput(source))
|
||||
Reference in new issue
Block a user