Class DecimalSerializer
Deprecated: this class will be made internal in the next major version.
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Cassandra.Serialization.Primitive
Assembly: Cassandra.dll
Syntax
public class DecimalSerializer : TypeSerializer<decimal>
Properties
CqlType
Declaration
public override ColumnTypeCode CqlType { get; }
Property Value
Type | Description |
---|---|
ColumnTypeCode |
Overrides
Cassandra.Serialization.TypeSerializer<decimal>.CqlType
Methods
Deserialize(ushort, byte[], int, int, IColumnInfo)
Declaration
public override decimal Deserialize(ushort protocolVersion, byte[] buffer, int offset, int length, IColumnInfo typeInfo)
Parameters
Type | Name | Description |
---|---|---|
ushort | protocolVersion | |
byte[] | buffer | |
int | offset | |
int | length | |
IColumnInfo | typeInfo |
Returns
Type | Description |
---|---|
decimal |
Overrides
Cassandra.Serialization.TypeSerializer<decimal>.Deserialize(ushort, byte[], int, int, Cassandra.IColumnInfo)
Serialize(ushort, decimal)
Declaration
public override byte[] Serialize(ushort protocolVersion, decimal value)
Parameters
Type | Name | Description |
---|---|---|
ushort | protocolVersion | |
decimal | value |
Returns
Type | Description |
---|---|
byte[] |
Overrides
Cassandra.Serialization.TypeSerializer<decimal>.Serialize(ushort, decimal)