Skip to content

Commit 7287cc9

Browse files
committed
docs: update README to reflect the new defaultEncoding property in PackedFormat configuration
1 parent da37256 commit 7287cc9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ payloads for Kotlin classes by moving structural metadata into a compact header.
8787

8888
```kotlin
8989
val compactFormat = PackedFormat {
90-
defaultVarInt = true // All Int/Long use VarInt by default
91-
defaultZigZag = true // All Int/Long use ZigZag by default
90+
defaultEncoding = PackedIntegerType.SIGNED
9291
serializersModule = myCustomModule
9392
}
9493
val bytes = PackedFormat.encodeToBytes(payload)

0 commit comments

Comments
 (0)