Ejemplo n.º 1
0
 /// <summary>
 /// <para>Writes a cursor entry.</para>
 /// </summary>
 /// <param name="key">
 /// <para>The key <see cref="DataBuffer" /> to write.</para>
 /// </param>
 /// <param name="value">
 /// <para>The value <see cref="DataBuffer" /> to write.</para>
 /// </param>
 /// <param name="offset">
 /// <para>The offset within the entry value to begin writing data.</para>
 /// </param>
 /// <param name="length">
 /// <para>The length of the segment within the entry value to write data.
 /// Use a negative value to read to the end.</para>
 /// </param>
 /// <param name="position">
 /// <para>The <see cref="CursorPosition" /> specifying the position at
 /// which to write.</para>
 /// </param>
 /// <param name="flags">
 /// <para>The <see cref="PutOpFlags" /> specifying the write options.</para>
 /// </param>
 /// <returns>
 /// <para>The <see cref="Lengths" /> specifying the lengths of the key
 /// and value written. Negative values match the conditional literals
 /// in <see cref="Lengths" />.</para>
 /// </returns>
 public abstract Lengths Put(DataBuffer key, DataBuffer value, int offset, int length, CursorPosition position, PutOpFlags flags);
Ejemplo n.º 2
0
 /// <summary>
 /// Writes entry data.
 /// </summary>
 /// <param name="key">The <see cref="DataBuffer"/> key.</param>
 /// <param name="offset">The <see cref="Int32"/> offset. If greater than or equal to 0, then a partial
 /// write is done and this specifies the start of the portion overwritten.</param>
 /// <param name="count">The <see cref="Int32"/> length of the entry portion overwritten for partial writes. </param>
 /// <param name="buffer">The <see cref="DataBuffer"/> containing the data to be written.</param>
 /// <param name="flags">The <see cref="PutOpFlags"/> for this operation.</param>
 /// <returns>The length of the data written.</returns>
 public abstract int Put(DataBuffer key, int offset, int count, DataBuffer buffer, PutOpFlags flags);