DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Static Protected Member Functions | List of all members
Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression > Class Template Reference
Inheritance diagram for Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression >:
Deveel.Data.Serialization.ObjectBinarySerializer< TExpression >

Static Protected Member Functions

static void WriteExpression (SqlExpression expression, BinaryWriter writer)
 
static void WriteExpressions (SqlExpression[] expressions, BinaryWriter writer)
 
static SqlExpression ReadExpression (BinaryReader reader)
 
static SqlExpression[] ReadExpressions (BinaryReader reader)
 

Additional Inherited Members

- Public Member Functions inherited from Deveel.Data.Serialization.ObjectBinarySerializer< TExpression >
abstract void Serialize (T obj, BinaryWriter writer)
 
abstract T Deserialize (BinaryReader reader)
 
- Protected Member Functions inherited from Deveel.Data.Serialization.ObjectBinarySerializer< TExpression >
 ObjectBinarySerializer ()
 
 ObjectBinarySerializer (Encoding encoding)
 
- Properties inherited from Deveel.Data.Serialization.ObjectBinarySerializer< TExpression >
virtual Encoding Encoding [get, private set]
 

Detailed Description

Type Constraints
TExpression :SqlExpression 

Definition at line 91 of file SqlExpressionSerializers.cs.

Member Function Documentation

static SqlExpression Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression >.ReadExpression ( BinaryReader  reader)
inlinestaticprotected

Definition at line 108 of file SqlExpressionSerializers.cs.

108  {
109  return SqlExpressionSerializers.Deserialize(reader);
110  }
static SqlExpression [] Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression >.ReadExpressions ( BinaryReader  reader)
inlinestaticprotected

Definition at line 112 of file SqlExpressionSerializers.cs.

112  {
113  var expCount = reader.ReadInt32();
114 
115  var exps = new SqlExpression[expCount];
116  for (int i = 0; i < expCount; i++) {
117  exps[i] = ReadExpression(reader);
118  }
119 
120  return exps;
121  }
static void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression >.WriteExpression ( SqlExpression  expression,
BinaryWriter  writer 
)
inlinestaticprotected

Definition at line 92 of file SqlExpressionSerializers.cs.

92  {
93  SqlExpressionSerializers.Serialize(expression, writer);
94  }
static void Deveel.Data.Sql.Expressions.SqlExpressionSerializers.SqlExpressionSerializer< TExpression >.WriteExpressions ( SqlExpression[]  expressions,
BinaryWriter  writer 
)
inlinestaticprotected

Definition at line 96 of file SqlExpressionSerializers.cs.

96  {
97  var expCount = expressions == null ? 0 : expressions.Length;
98 
99  writer.Write(expCount);
100 
101  if (expressions != null) {
102  for (int i = 0; i < expCount; i++) {
103  WriteExpression(expressions[i], writer);
104  }
105  }
106  }
static void WriteExpression(SqlExpression expression, BinaryWriter writer)

The documentation for this class was generated from the following file: