BinaryStreamPointerWrapper Class

Creates a BinaryStreamBase that wraps a single pointer.

Definition

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

Constructors

BinaryStreamPointerWrapper Creates a BinaryStreamPointerWrapper.

Properties

CanRead Indicates whether or not the stream allows reading.
(Inherited from BinaryStreamPointerBase)
CanSeek Indicates whether or not the stream allows seeking.
(Inherited from BinaryStreamPointerBase)
CanWrite Indicates whether or not the stream allows writing.
(Inherited from BinaryStreamPointerBase)
Length Throws a NotSupportedException since getting the length of this stream is not supported.
(Inherited from BinaryStreamPointerBase)
PointerVersion Gets the pointer version number, assuming that this binary stream has an unmanaged buffer backing this stream. If the pointer version is the same, then any pointer acquired is still valid.
(Inherited from BinaryStreamPointerBase)
Position Gets or sets the current position for the stream.
(Inherited from BinaryStreamPointerBase)
RemainingReadLength Returns the number of bytes available at the end of the stream.
(Inherited from BinaryStreamPointerBase)
RemainingWriteLength Returns the number of bytes available at the end of the stream for writing purposes.
(Inherited from BinaryStreamPointerBase)

Methods

Copy Copies a block of data from one position in the stream to another position within the same stream.
(Inherited from BinaryStreamPointerBase)
Dispose Releases all the resources used by the BinaryStreamBase object.
(Inherited from BinaryStreamBase)
Dispose(Boolean) Releases the unmanaged resources used by the BinaryStreamBase object and optionally releases the managed resources.
(Inherited from BinaryStreamBase)
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 any buffered data or state within the stream. This method intentionally does nothing, as there is no buffering to flush.
(Inherited from BinaryStreamPointerBase)
GetHashCodeServes as the default hash function.
(Inherited from Object)
GetReadPointer(Int64, Int32) Gets a read pointer to a specified position in the stream for a specified length of data.
(Inherited from BinaryStreamPointerBase)
GetReadPointer(Int64, Int32, Boolean) Gets a read pointer to a specified position in the stream for a specified length of data and determines if the stream supports writing at that position.
(Inherited from BinaryStreamPointerBase)
GetTypeGets the Type of the current instance.
(Inherited from Object)
GetWritePointer Gets a pointer to the specified write position in the binary stream that can be used for writing up the provided length and reserving space for writing the data. Current position does not get advanced after calling this function.
(Inherited from BinaryStreamPointerBase)
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 specified number of bytes from the BinaryStream and advances the position by that amount.
(Inherited from BinaryStreamPointerBase)
Read7BitUInt32 Reads a 7-bit encoded unsigned 32-bit integer (UInt32) from the stream.
(Inherited from BinaryStreamPointerBase)
Read7BitUInt64 Reads a 7-bit encoded unsigned 64-bit integer (UInt64) from the stream.
(Inherited from BinaryStreamPointerBase)
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 a single unsigned byte (UInt16) from the stream.
(Inherited from BinaryStreamPointerBase)
ReadInt32 Reads a single unsigned byte (UInt32) from the stream.
(Inherited from BinaryStreamPointerBase)
ReadInt64 Reads a single unsigned byte (UInt64) from the stream.
(Inherited from BinaryStreamPointerBase)
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 single unsigned byte (UInt8) from the stream.
(Inherited from BinaryStreamPointerBase)
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 BinaryStream, which is not supported and will throw a NotSupportedException.
(Inherited from BinaryStreamPointerBase)
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.
(Overrides BinaryStreamBaseUpdateLocalBuffer(Boolean))
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 single byte to the stream.
(Inherited from BinaryStreamPointerBase)
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 a single short to the stream.
(Inherited from BinaryStreamPointerBase)
Write(Int32) Writes a single int to the stream.
(Inherited from BinaryStreamPointerBase)
Write(Int64) Writes a single long to the stream.
(Inherited from BinaryStreamPointerBase)
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 a block of data from a pointer to the stream.
(Inherited from BinaryStreamPointerBase)
Write(Byte, Int32, Int32) Writes a block of data from a byte array to the stream, starting from a specified offset and for a specified count of bytes.
(Inherited from BinaryStreamPointerBase)
Write7Bit(UInt32) Writes a single uint to the stream.
(Inherited from BinaryStreamPointerBase)
Write7Bit(UInt64) Writes a single ulong to the stream.
(Inherited from BinaryStreamPointerBase)
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

Current The current position data.
(Inherited from BinaryStreamPointerBase)
First The first position of the block.
(Inherited from BinaryStreamPointerBase)
FirstPosition The position that corresponds to the first byte in the buffer.
(Inherited from BinaryStreamPointerBase)
LastPosition Contains the position for the last position.
(Inherited from BinaryStreamPointerBase)
LastRead One past the last address for reading.
(Inherited from BinaryStreamPointerBase)
LastWrite One past the last address for writing.
(Inherited from BinaryStreamPointerBase)
Stream A Stream implementation of this BinaryStreamBase
(Inherited from BinaryStreamBase)

See Also