toggle menu
silk
1.10.4
jvm
switch theme
search in API
silk-core
/
net.silkmc.silk.core.serialization
/
SilkSerializer
Silk
Serializer
abstract
class
SilkSerializer
<
T
>
(
val
primitiveKind
:
PrimitiveKind
=
PrimitiveKind.STRING
)
:
KSerializer
<
T
>
(
source
)
Inheritors
ResourceLocationSerializer
Members
Constructors
Silk
Serializer
Link copied to clipboard
constructor
(
primitiveKind
:
PrimitiveKind
=
PrimitiveKind.STRING
)
Properties
descriptor
Link copied to clipboard
open
override
val
descriptor
:
SerialDescriptor
descriptor
Name
Link copied to clipboard
val
descriptorName
:
String
primitive
Kind
Link copied to clipboard
val
primitiveKind
:
PrimitiveKind
Functions
deserialize
Link copied to clipboard
abstract
fun
deserialize
(
decoder
:
Decoder
)
:
T
serialize
Link copied to clipboard
abstract
fun
serialize
(
encoder
:
Encoder
,
value
:
T
)