DeveelDB  20151217
complete SQL database system, primarly developed for .NET/Mono frameworks
Public Member Functions | Private Attributes | List of all members
Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel Class Reference
Inheritance diagram for Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel:

Public Member Functions

 DirectStreamableObjectChannel (ServerConnector connector, IRef obj)
 
void Dispose ()
 
void PushData (long offset, byte[] buffer, int length)
 
byte[] ReadData (long offset, int length)
 

Private Attributes

readonly IRef obj
 
readonly ServerConnector connector
 

Detailed Description

Definition at line 651 of file ServerConnector.old.cs.

Constructor & Destructor Documentation

Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.DirectStreamableObjectChannel ( ServerConnector  connector,
IRef  obj 
)
inline

Member Function Documentation

void Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.Dispose ( )
inline
void Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.PushData ( long  offset,
byte[]  buffer,
int  length 
)
inline

Definition at line 664 of file ServerConnector.old.cs.

664  {
665  obj.Write(offset, buffer, length);
666  }
byte [] Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.ReadData ( long  offset,
int  length 
)
inline

Definition at line 668 of file ServerConnector.old.cs.

668  {
669  if (length > 512 * 1024)
670  throw new DatabaseException("Request length exceeds 512 KB");
671 
672  try {
673  // Read the blob part into the byte array.
674  var blobPart = new byte[length];
675  obj.Read(offset, blobPart, length);
676 
677  // And return as a StreamableObjectPart object.
678  return blobPart;
679  } catch (IOException e) {
680  throw new DatabaseException("Exception while reading blob: " + e.Message, e);
681  }
682  }

Member Data Documentation

readonly ServerConnector Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.connector
private

Definition at line 653 of file ServerConnector.old.cs.

readonly IRef Deveel.Data.Protocol.ServerConnector.DirectStreamableObjectChannel.obj
private

Definition at line 652 of file ServerConnector.old.cs.


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