Interface IBufferedTypeSerializer
Extension of IType
Inherited Members
Namespace: Couchbase.Core.IO.Serializers
Assembly: Couchbase.NetClient.dll
Syntax
public interface IBufferedTypeSerializer : ITypeSerializer
Methods
| Edit this page View SourceCanSerialize(Type)
Determines if the serializer can serialize and deserialize the specified type.
Declaration
bool CanSerialize(Type type)
Parameters
Type | Name | Description |
---|---|---|
Type | type | Type of object to serialize or deserialize. |
Returns
Type | Description |
---|---|
bool |
|
Deserialize<T>(ReadOnlySequence<byte>)
Deserializes the specified buffer into the type specified by T
.
Declaration
T? Deserialize<T>(ReadOnlySequence<byte> buffer)
Parameters
Type | Name | Description |
---|---|---|
Read |
buffer | The buffer to deserialize from. |
Returns
Type | Description |
---|---|
T | The deserialized value. |
Type Parameters
Name | Description |
---|---|
T | The type of the value. |
Serialize<T>(IBufferWriter<byte>, T)
Serializes the specified object onto an IBuffer
Declaration
void Serialize<T>(IBufferWriter<byte> writer, T obj)
Parameters
Type | Name | Description |
---|---|---|
IBuffer |
writer | The writer to receive the serialized object. |
T | obj | The object to serialize. |
Type Parameters
Name | Description |
---|---|
T | Type of object to serialize. |