BinaryStreamWrapper Class

A simple wrapper of a Stream. Provides no caching functionality.

Definition

Namespace: SnapDB.IO
Assembly: SnapDB (in SnapDB.dll) Version: 1.0.102.0 -- Release Build+29075351d0e5aa4dea46a5c520805222f672dc2e
public class BinaryStreamWrapper : BinaryStreamBase
Inheritance
Object    BinaryStreamBase    BinaryStreamWrapper

Constructors

BinaryStreamWrapper Initializes a new instance of the BinaryStreamWrapper class with the specified Stream and ownership information.

Properties

CanRead Gets a value indicating whether the underlying stream supports reading.
(Overrides BinaryStreamBaseCanRead)
CanSeek Gets a value indicating whether the underlying stream supports seeking.
(Overrides BinaryStreamBaseCanSeek)
CanWrite Gets a value indicating whether the underlying stream supports writing.
(Overrides BinaryStreamBaseCanWrite)
Length Gets the length (in bytes) of the underlying stream.
(Overrides BinaryStreamBaseLength)
Position Gets or sets the current position for the stream.
(Overrides BinaryStreamBasePosition)

Methods

Copy Copies a block of data from the current stream to another position within the same stream.
(Inherited from BinaryStreamBase)
Dispose Releases all the resources used by the BinaryStreamBase object.
(Inherited from BinaryStreamBase)
Dispose(Boolean) Releases and cleans up resources associated with the object.
(Overrides BinaryStreamBaseDispose(Boolean))
EqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
FinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Flush Flushes the underlying stream.
(Overrides BinaryStreamBaseFlush)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetTypeGets the Type of the current instance.
(Inherited from Object)
InsertBytes Inserts a certain number of bytes into the stream, shifting valid data to the right. The stream's position remains unchanged. (i.e., pointing to the beginning of the newly inserted bytes).
(Inherited from BinaryStreamBase)
MemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Read Reads a block of bytes from the underlying stream.
(Overrides BinaryStreamBaseRead(Byte, Int32, Int32))
Read7BitUInt32 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
Read7BitUInt64 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadAll(Byte*, Int32) Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadAll(Byte, Int32, Int32) Reads all of the provided bytes. Will not return prematurely, but continue to execute a Read(Byte, Int32, Int32) command until the entire length has been read.
(Inherited from BinaryStreamBase)
ReadBoolean Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadBytes Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadBytes(Int32) Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadDateTime Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadDecimal Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadDouble Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadGuid Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadInt16 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadInt32 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadInt64 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadInt8 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadSingle Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadString Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt16 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt24 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt32 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt40 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt48 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt56 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt64 Reads from the underlying stream in little-endian format. Advancing the position.
(Inherited from BinaryStreamBase)
ReadUInt8 Reads a byte from the underlying stream.
(Overrides BinaryStreamBaseReadUInt8)
RemoveBytes Removes a certain number of bytes from the stream, shifting valid data after this location to the left. The stream's position remains unchanged. (i.e., pointing to where the data used to exist).
(Inherited from BinaryStreamBase)
Seek When overridden in a derived class, sets the position within the current stream.
(Inherited from BinaryStreamBase)
SetLength Sets the length of the underlying stream.
(Overrides BinaryStreamBaseSetLength(Int64))
ToStringReturns a string that represents the current object.
(Inherited from Object)
TryReadBytes Attempts to read a byte array from the stream with a specified maximum length.
(Inherited from BinaryStreamBase)
TryReadString Attempts to read a byte array from the stream with a specified maximum length.
(Inherited from BinaryStreamBase)
UpdateLocalBuffer Updates the local buffer data.
(Inherited from BinaryStreamBase)
Write(Boolean) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Byte) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Byte) Writes a byte to the underlying stream.
(Overrides BinaryStreamBaseWrite(Byte))
Write(DateTime) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Decimal) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Double) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Guid) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Int16) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Int32) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Int64) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(SByte) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Single) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(String) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(UInt16) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(UInt32) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(UInt64) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Byte*, Int32) Writes the specified buffer to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write(Byte, Int32, Int32) Writes a block of bytes to the underlying stream.
(Overrides BinaryStreamBaseWrite(Byte, Int32, Int32))
Write7Bit(UInt32) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
Write7Bit(UInt64) Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteUInt Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteUInt24 Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteUInt40 Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteUInt48 Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteUInt56 Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)
WriteWithLength Writes the specified value to the underlying stream in little-endian format.
(Inherited from BinaryStreamBase)

Fields

Stream A Stream implementation of this BinaryStreamBase
(Inherited from BinaryStreamBase)

See Also