Proton DotNet
Public Member Functions | Public Attributes | Properties | List of all members
Apache.Qpid.Proton.Buffer.ProtonBufferInputStream Class Reference

Provides a read-only stream view of a proton buffer instance. The stream allows seeking within the readable bytes portion of the provided buffer but does not allow altering the readable length or writing to the buffer. More...

Inheritance diagram for Apache.Qpid.Proton.Buffer.ProtonBufferInputStream:

Public Member Functions

 ProtonBufferInputStream (IProtonBuffer buffer)
 
override void Close ()
 
override int ReadByte ()
 
override int Read (byte[] destination, int offset, int count)
 
override long Seek (long offset, SeekOrigin origin)
 
override void SetLength (long value)
 
override void Write (byte[] buffer, int offset, int count)
 
override void Flush ()
 

Public Attributes

long BytesRead => buffer.ReadOffset - initialReadIndex
 
override bool CanRead => true
 
override bool CanSeek => true
 
override bool CanWrite => false
 
override long Length => buffer.WriteOffset - initialReadIndex
 

Properties

override long Position [get, set]
 

Detailed Description

Provides a read-only stream view of a proton buffer instance. The stream allows seeking within the readable bytes portion of the provided buffer but does not allow altering the readable length or writing to the buffer.


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