2 * Firebird ADO.NET Data provider for .NET and Mono
\r
4 * The contents of this file are subject to the Initial
\r
5 * Developer's Public License Version 1.0 (the "License");
\r
6 * you may not use this file except in compliance with the
\r
7 * License. You may obtain a copy of the License at
\r
8 * http://www.firebirdsql.org/index.php?op=doc&id=idpl
\r
10 * Software distributed under the License is distributed on
\r
11 * an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either
\r
12 * express or implied. See the License for the specific
\r
13 * language governing rights and limitations under the License.
\r
15 * Copyright (c) 2002, 2005 Carlos Guzman Alvarez
\r
16 * All Rights Reserved.
\r
23 namespace FirebirdSql.Data.Common
\r
25 internal sealed class EventParameterBuffer : ParameterBuffer
\r
27 #region Constructors
\r
29 public EventParameterBuffer() : base(true)
\r
37 public void Append(string content, int actualCount)
\r
39 this.Append(Encoding.Default.GetBytes(content), actualCount);
\r
42 public void Append(byte[] content, int actualCount)
\r
44 this.WriteByte(content.Length);
\r
45 this.Write(content);
\r
46 this.Write(actualCount);
\r