Example #1
0
 protected override Int32 CalculateSize(BackendABIHelper args, ResizableArray <Byte> array)
 {
     return(args.GetStringSize(this._statementName, array)
            + args.GetStringSize(this._sql, array)
            + sizeof(Int16)
            + this._typeIDs.GetLengthOrDefault() * sizeof(Int32));
 }
Example #2
0
 protected override Int32 CalculateBufferSize(BackendABIHelper args, ResizableArray <Byte> array)
 {
     return(args.GetStringSize(this._portalName, array) + sizeof(Int32));
 }
Example #3
0
 protected override Int32 CalculateBufferSize(BackendABIHelper args, ResizableArray <Byte> array)
 {
     return(args.GetStringSize(this._query, array));
 }
Example #4
0
 protected override Int32 CalculateSize(BackendABIHelper args, ResizableArray <Byte> array)
 {
     return(5 // int32 (protocol version) + end-byte (after message, zero)
            + this._parameters.Sum(kvp => args.GetStringSize(kvp.Key, array) + args.GetStringSize(kvp.Value, array)));
 }