BinaryClassSerializationAdapter
BinaryClassSerializationAdapter
Defines how to serialize and deserialize an instance of a given class
Kind: global class
- BinaryClassSerializationAdapter
- .klass :
Class
- .version :
number
- .isBinaryClassSerializationAdapter :
boolean
- .getClass() ⇒
Class.<T>
- .getVersion() ⇒
number
- .finalize()
- .serialize(buffer, value)
- .deserialize(buffer, value)
- .klass :
binaryClassSerializationAdapter.klass : Class
Class that this adapter handles
Kind: instance property of BinaryClassSerializationAdapter
Access: protected
binaryClassSerializationAdapter.version : number
Format version number, used to check for format changes and data compatibility Increment the number if you change the adapter to indicate the change in format See BinaryClassUpgrader for details on how to handle support for outdated format versions
Kind: instance property of BinaryClassSerializationAdapter
Access: protected
binaryClassSerializationAdapter.isBinaryClassSerializationAdapter : boolean
Kind: instance property of BinaryClassSerializationAdapter
Read only: true
binaryClassSerializationAdapter.getClass() ⇒ Class.<T>
Kind: instance method of BinaryClassSerializationAdapter
binaryClassSerializationAdapter.getVersion() ⇒ number
Kind: instance method of BinaryClassSerializationAdapter
binaryClassSerializationAdapter.finalize()
Handle any necessary resource cleanup. Invoked externally as part of the serialization lifecycle
Kind: instance method of BinaryClassSerializationAdapter
binaryClassSerializationAdapter.serialize(buffer, value)
Kind: instance method of BinaryClassSerializationAdapter
Param | Type |
---|---|
buffer | BinaryBuffer |
value |
binaryClassSerializationAdapter.deserialize(buffer, value)
Kind: instance method of BinaryClassSerializationAdapter
Param | Type |
---|---|
buffer | BinaryBuffer |
value |