Skip to content

Commit

Permalink
Remove unwanted api marker
Browse files Browse the repository at this point in the history
  • Loading branch information
miensol committed Aug 30, 2023
1 parent 2828923 commit 3bbd5a9
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/main/kotlin/dev/bright/vb6serializer/VB6Binary.kt
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
package dev.bright.vb6serializer

import kotlinx.serialization.*
import kotlinx.serialization.BinaryFormat
import kotlinx.serialization.DeserializationStrategy
import kotlinx.serialization.KSerializer
import kotlinx.serialization.SerializationStrategy
import kotlinx.serialization.modules.EmptySerializersModule
import kotlinx.serialization.modules.SerializersModule
import java.io.ByteArrayInputStream
Expand All @@ -24,8 +27,10 @@ data class VB6BinaryConfiguration(
val emptyStringsPaddingCharacterByte get() = emptyStringsPaddingCharacter.code.toByte()
}

@ExperimentalSerializationApi
open class VB6Binary(override val serializersModule: SerializersModule, private val configuration: VB6BinaryConfiguration) : BinaryFormat {
open class VB6Binary(
override val serializersModule: SerializersModule,
private val configuration: VB6BinaryConfiguration
) : BinaryFormat {
companion object Default : VB6Binary(EmptySerializersModule(), VB6BinaryConfiguration()) {
fun <T> byteSizeOf(serializer: KSerializer<T>, instance: T) = encodeToByteArray(serializer, instance).size
}
Expand Down

0 comments on commit 3bbd5a9

Please sign in to comment.