SimpleBinaryFormatDeserializableResourceDecoder

Constructors

constructor(format: F)

Properties

Link copied to clipboard
open override val format: F

使用的format。

Functions

Link copied to clipboard
open override fun <T> decode(inputStream: InputStream, deserializer: DeserializationStrategy<T>): T

提供数据输入流和deserializer, 解析为目标类型。

Link copied to clipboard
protected open fun InputStream.prepare(): ByteArray

提前准备输入流,将其转化为 ByteArray.