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