C# Class NuoDb.Data.Client.EncodedDataStream

Inheritance: DataStream
Show file Open project: nuodb/nuodb-dotnet Class Usage Examples

Public Properties

Property Type Description
@bool bool
@string string
bigDecimal decimal
blobId int
bytes byte[]
dbl double
integer32 int
integer64 long
scale int
type int
uuid Guid

Protected Properties

Property Type Description
buffer byte[]
offset int
priorCode int

Public Methods

Method Description
EncodedDataStream ( ) : System
EncodedDataStream ( int protocolVersion ) : System
decode ( byte source, int sourceOffset ) : int
decode ( ) : void
encodeArray ( DataTable rows ) : void
encodeArray ( IDataRecord rows ) : void
encodeBigDecimal ( Decimal bd ) : void
encodeBoolean ( bool value ) : void
encodeBytes ( byte value ) : void
encodeDate ( DateTime date ) : void
encodeDotNetObject ( object value ) : void
encodeDouble ( double dbl ) : void
encodeGuid ( Guid guid ) : void
encodeInt ( int value ) : void
encodeLong ( long value ) : void
encodeLong ( long value, int scale ) : void
encodeNull ( ) : void
encodeOldBigDecimal ( decimal bd ) : void
encodeScaledDate ( DateTime date ) : void
encodeScaledTime ( DateTime time ) : void
encodeScaledTime ( TimeSpan time ) : void
encodeScaledTimestamp ( DateTime val ) : void
encodeString ( string @string ) : void
encodeTime ( DateTime time ) : void
encodeTime ( TimeSpan time ) : void
encodeTimestamp ( DateTime val ) : void
getBigDecimal ( ) : decimal
getBoolean ( ) : bool
getBytes ( ) : byte[]
getDouble ( ) : double
getInt ( ) : int
getLong ( ) : long
getMessage ( CryptoInputStream stream ) : void
getString ( ) : string
getUUId ( ) : Guid
setBase64 ( char data, int dataOffset, int length ) : int
setData ( byte data, int offset, int length ) : void
startMessage ( int messageType ) : void
write ( byte b ) : void

Private Methods

Method Description
ConvertToScaledDecimal ( Decimal bd, int &scale, Decimal &temp ) : void
ScaleDecimal ( Decimal bd, int scale ) : Decimal
byteCount ( int n ) : int
byteCount ( long n ) : int
encodeInt ( int count, int value ) : void
getValue ( SQLContext sqlContext ) : Value

Method Details

EncodedDataStream() public method

public EncodedDataStream ( ) : System
return System

EncodedDataStream() public method

public EncodedDataStream ( int protocolVersion ) : System
protocolVersion int
return System

decode() public method

public decode ( byte source, int sourceOffset ) : int
source byte
sourceOffset int
return int

decode() public method

public decode ( ) : void
return void

encodeArray() public method

public encodeArray ( DataTable rows ) : void
rows DataTable
return void

encodeArray() public method

public encodeArray ( IDataRecord rows ) : void
rows IDataRecord
return void

encodeBigDecimal() public method

public encodeBigDecimal ( Decimal bd ) : void
bd Decimal
return void

encodeBoolean() public method

public encodeBoolean ( bool value ) : void
value bool
return void

encodeBytes() public method

public encodeBytes ( byte value ) : void
value byte
return void

encodeDate() public method

public encodeDate ( DateTime date ) : void
date DateTime
return void

encodeDotNetObject() public method

public encodeDotNetObject ( object value ) : void
value object
return void

encodeDouble() public method

public encodeDouble ( double dbl ) : void
dbl double
return void

encodeGuid() public method

public encodeGuid ( Guid guid ) : void
guid Guid
return void

encodeInt() public method

public encodeInt ( int value ) : void
value int
return void

encodeLong() public method

public encodeLong ( long value ) : void
value long
return void

encodeLong() public method

public encodeLong ( long value, int scale ) : void
value long
scale int
return void

encodeNull() public method

public encodeNull ( ) : void
return void

encodeOldBigDecimal() public method

public encodeOldBigDecimal ( decimal bd ) : void
bd decimal
return void

encodeScaledDate() public method

public encodeScaledDate ( DateTime date ) : void
date DateTime
return void

encodeScaledTime() public method

public encodeScaledTime ( DateTime time ) : void
time DateTime
return void

encodeScaledTime() public method

public encodeScaledTime ( TimeSpan time ) : void
time TimeSpan
return void

encodeScaledTimestamp() public method

public encodeScaledTimestamp ( DateTime val ) : void
val DateTime
return void

encodeString() public method

public encodeString ( string @string ) : void
@string string
return void

encodeTime() public method

public encodeTime ( DateTime time ) : void
time DateTime
return void

encodeTime() public method

public encodeTime ( TimeSpan time ) : void
time TimeSpan
return void

encodeTimestamp() public method

public encodeTimestamp ( DateTime val ) : void
val DateTime
return void

getBigDecimal() public method

public getBigDecimal ( ) : decimal
return decimal

getBoolean() public method

public getBoolean ( ) : bool
return bool

getBytes() public method

public getBytes ( ) : byte[]
return byte[]

getDouble() public method

public getDouble ( ) : double
return double

getInt() public method

public getInt ( ) : int
return int

getLong() public method

public getLong ( ) : long
return long

getMessage() public method

public getMessage ( CryptoInputStream stream ) : void
stream CryptoInputStream
return void

getString() public method

public getString ( ) : string
return string

getUUId() public method

public getUUId ( ) : Guid
return Guid

setBase64() public method

public setBase64 ( char data, int dataOffset, int length ) : int
data char
dataOffset int
length int
return int

setData() public method

public setData ( byte data, int offset, int length ) : void
data byte
offset int
length int
return void

startMessage() public method

public startMessage ( int messageType ) : void
messageType int
return void

write() public method

public write ( byte b ) : void
b byte
return void

Property Details

@bool public property

public bool @bool
return bool

@string public property

public string @string
return string

bigDecimal public property

public decimal bigDecimal
return decimal

blobId public property

public int blobId
return int

buffer protected property

protected byte[] buffer
return byte[]

bytes public property

public byte[] bytes
return byte[]

dbl public property

public double dbl
return double

integer32 public property

public int integer32
return int

integer64 public property

public long integer64
return long

offset protected property

protected int offset
return int

priorCode protected property

protected int priorCode
return int

scale public property

public int scale
return int

type public property

public int type
return int

uuid public property

public Guid uuid
return Guid