Метод | Описание | |
---|---|---|
And ( |
Performs a bitwise AND operation on the bits in the current stream against the corresponding bits in the specified stream. . |
|
BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous read operation. Notes to Callers: This method is not supported, and cannot be used. Asynchronous operations are not supported by the BitStream class. |
|
BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult |
Begins an asynchronous write operation. Notes to Callers: This method is not supported, and cannot be used. Asynchronous operations are not supported by the BitStream class. |
|
BitStream ( ) : System |
Initialises a new instance of the BitStream class with an expandable capacity initialised to one. . |
|
BitStream ( Stream bits ) : System |
Initialises a new instance of the BitStream class with the bits provided by the specified Stream. Added [20051122]. |
|
BitStream ( long capacity ) : System |
Initialises a new instance of the BitStream class with an expandable capacity initialised to the specified capacity in bits. . |
|
Close ( ) : void |
Closes the current stream for reading and writing. . |
|
Copy ( ) : |
Creates a copy of the current stream. This method works even when the current stream is closed. |
|
EndRead ( IAsyncResult asyncResult ) : int |
Waits for the pending asynchronous read to complete. Notes to Callers: This method is not supported, and cannot be used. Asynchronous operations are not supported by the BitStream class. |
|
EndWrite ( IAsyncResult asyncResult ) : void |
Ends an asynchronous write operation. Notes to Callers: This method is not supported, and cannot be used. Asynchronous operations are not supported by the BitStream class. |
|
Flush ( ) : void |
When overridden in a derived class, clears all buffers for this stream and causes any buffered data to be written to the underlying device. Notes to Callers: This method is not supported, and cannot be used. |
|
GetBuffer ( ) : uint[] |
Returns the array of unsigned integers from which this stream was created. This method works even when the current stream is closed. |
|
Not ( ) : |
Performs a bitwise NOT operation on the bits in the current stream. . |
|
Or ( |
Performs a bitwise OR operation on the bits in the current stream against the corresponding bits in the specified stream. . |
|
Read ( bool &bit ) : int |
Reads the bit contained in the current stream to a Boolean value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( bool bits, int offset, int count ) : int |
Reads the bits contained in the current stream to a Boolean buffer. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( byte &bits ) : int |
Reads the bits contained in the current stream to a Byte value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( byte &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Byte value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( char &bits ) : int |
Reads the bits contained in the current stream to a Char value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( char &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Char value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( double &bits ) : int |
Reads the bits contained in the current stream to a Double value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( double &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Double value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( float &bits ) : int |
Reads the bits contained in the current stream to a Single value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( float &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Single value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( int &bits ) : int |
Reads the bits contained in the current stream to a Int32 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( int &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Int32 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( long &bits ) : int |
Reads the bits contained in the current stream to a Int64 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( long &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Int64 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( sbyte &bits ) : int |
Reads the bits contained in the current stream to a SByte value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( sbyte &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a SByte value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( short &bits ) : int |
Reads the bits contained in the current stream to a Int16 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( short &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a Int16 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( uint &bits ) : int |
Reads the bits contained in the current stream to a UInt32 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( uint &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a UInt32 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( ulong &bits ) : int |
Reads the bits contained in the current stream to a UInt64 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( ulong &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a UInt64 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( ushort &bits ) : int |
Reads the bits contained in the current stream to a UInt16 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
Read ( ushort &bits, int bitIndex, int count ) : int |
Reads the bits contained in the current stream to a UInt16 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
ReadByte ( ) : int |
Reads a byte from the stream and advances the position within the stream by one byte, or returns -1 if at the end of the stream. Modified [20051124] |
|
Seek ( long offset, SeekOrigin origin ) : long |
When overridden in a derived class, sets the position within the current stream. Notes to Callers: This method is not supported, and cannot be used. To set the position within the current stream use the Position property instead. |
|
SetLength ( long value ) : void |
When overridden in a derived class, sets the length of the current stream. Notes to Callers: This method is not supported, and cannot be used. All write operations at the end of the BitStream expand the BitStream automatically. |
|
ShiftLeft ( long count ) : |
Moves the bits of the current stream to the left by the specified number places. . |
|
ShiftRight ( long count ) : |
Moves the bits of the current stream to the right by the specified number places. . |
|
ToByteArray ( ) : byte[] |
Added [20051124]. |
|
ToString ( ) : string |
Returns a String that represents the current stream in binary notation. . |
|
ToString ( bool bit ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( byte bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( char bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( double bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( float bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( int bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( long bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( sbyte bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( short bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( uint bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( ulong bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
ToString ( ushort bits ) : string |
Returns a String that represents the specified value in binary notation. . |
|
Write ( bool bit ) : void |
Writes the bit represented by a Boolean value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( bool bits, int offset, int count ) : void |
Writes the bits contained in a Boolean buffer to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( byte bits ) : void |
Writes the bits contained in a Byte value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( byte bits, int bitIndex, int count ) : void |
Writes the bits contained in a Byte value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( char bits ) : void |
Writes the bits contained in a Char value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( char bits, int bitIndex, int count ) : void |
Writes the bits contained in a Char value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( double bits ) : void |
Writes the bits contained in a Double value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( double bits, int bitIndex, int count ) : void |
Writes the bits contained in an Double value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( float bits ) : void |
Writes the bits contained in a Single value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( float bits, int bitIndex, int count ) : void |
Writes the bits contained in a Single value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( int bits ) : void |
Writes the bits contained in an Int32 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( int bits, int bitIndex, int count ) : void |
Writes the bits contained in an Int32 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( long bits ) : void |
Writes the bits contained in an Int64 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( long bits, int bitIndex, int count ) : void |
Writes the bits contained in an UInt16 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( sbyte bits ) : void |
Writes the bits contained in an SByte value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( sbyte bits, int bitIndex, int count ) : void |
Writes the bits contained in an SByte value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( short bits ) : void |
Writes the bits contained in an Int16 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( short bits, int bitIndex, int count ) : void |
Writes the bits contained in an Int16 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( uint bits ) : void |
Writes the bits contained in an UInt32 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( uint bits, int bitIndex, int count ) : void |
Writes the bits contained in an UInt32 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( ulong bits ) : void |
Writes the bits contained in an UInt64 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( ulong bits, int bitIndex, int count ) : void |
Writes the bits contained in an UInt64 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( ushort bits ) : void |
Writes the bits contained in an UInt16 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
Write ( ushort bits, int bitIndex, int count ) : void |
Writes the bits contained in an UInt16 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
|
WriteByte ( byte value ) : void |
Writes a byte to the current stream at the current position. All write operations at the end of the BitStream expand the BitStream. |
|
WriteTo ( Stream bits ) : void |
Writes the entire contents of this bit stream to another stream. Added [20051127] |
|
Xor ( |
Performs a bitwise eXclusive OR operation on the bits in the current stream against the corresponding bits in the specified stream. . |
Метод | Описание | |
---|---|---|
ReDimPreserve ( uint buffer, uint newLength ) : uint[] |
Re-dimensions and preserves the contents of a buffer by the specified amount. . |
|
Read ( uint &bits, uint &bitIndex, uint &count ) : uint |
Reads the bits contained in the current stream to a UInt32 value. The Read method returns zero if the end of the current stream is reached. In all other cases, Read always reads at least one bit from the current stream before returning. |
|
UpdateIndicesForRead ( uint bits ) : void |
Updates the internal buffer's bit indices after reading to the current stream by the specified number of bits. . |
|
UpdateIndicesForWrite ( uint bits ) : void |
Updates the internal buffer's bit indices after writing to the current stream by the specified number of bits. . |
|
UpdateLengthForWrite ( uint bits ) : void |
Updates the length of the internal buffer after wrinting to the current stream by the specified number of bits. . |
|
Write ( uint &bits, uint &bitIndex, uint &count ) : void |
Writes the bits contained in an UInt32 value to the current stream. All write operations at the end of the BitStream expand the BitStream. |
public And ( |
||
bits |
/// A |
|
Результат |
public BeginRead ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | /// The buffer to read the data into. /// |
offset | int | /// The byte offset in buffer at which to begin writing data read /// from the stream. /// |
count | int | /// The maximum number of bytes to read. /// |
callback | AsyncCallback | /// An optional asynchronous callback, to be called when the read is /// complete. /// |
state | object | /// A user-provided object that distinguishes this particular asynchronous /// read request from other requests. /// |
Результат | IAsyncResult |
public BeginWrite ( byte buffer, int offset, int count, AsyncCallback callback, object state ) : IAsyncResult | ||
buffer | byte | /// The buffer to write data from. /// |
offset | int | /// The byte offset in buffer from which to begin writing. /// |
count | int | /// The maximum number of bytes to write. /// |
callback | AsyncCallback | /// An optional asynchronous callback, to be called when the write is /// complete. /// |
state | object | /// A user-provided object that distinguishes this particular asynchronous /// write request from other requests. /// |
Результат | IAsyncResult |
public BitStream ( Stream bits ) : System | ||
bits | Stream |
/// A |
Результат | System |
public BitStream ( long capacity ) : System | ||
capacity | long |
/// An |
Результат | System |
public EndRead ( IAsyncResult asyncResult ) : int | ||
asyncResult | IAsyncResult | /// The reference to the pending asynchronous request to finish. /// |
Результат | int |
public EndWrite ( IAsyncResult asyncResult ) : void | ||
asyncResult | IAsyncResult | /// A reference to the outstanding asynchronous I/O request. /// |
Результат | void |
public Or ( |
||
bits |
/// A |
|
Результат |
public Read ( bool &bit ) : int | ||
bit | bool |
/// When this method returns, contains the specified |
Результат | int |
public Read ( bool bits, int offset, int count ) : int | ||
bits | bool |
/// When this method returns, contains the specified |
offset | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( byte &bits ) : int | ||
bits | byte |
/// When this method returns, contains the specified |
Результат | int |
public Read ( byte &bits, int bitIndex, int count ) : int | ||
bits | byte |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( char &bits ) : int | ||
bits | char |
/// When this method returns, contains the specified |
Результат | int |
public Read ( char &bits, int bitIndex, int count ) : int | ||
bits | char |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( double &bits ) : int | ||
bits | double |
/// When this method returns, contains the specified |
Результат | int |
public Read ( double &bits, int bitIndex, int count ) : int | ||
bits | double |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( float &bits ) : int | ||
bits | float |
/// When this method returns, contains the specified |
Результат | int |
public Read ( float &bits, int bitIndex, int count ) : int | ||
bits | float |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( int &bits ) : int | ||
bits | int |
/// When this method returns, contains the specified |
Результат | int |
public Read ( int &bits, int bitIndex, int count ) : int | ||
bits | int |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( long &bits ) : int | ||
bits | long |
/// When this method returns, contains the specified |
Результат | int |
public Read ( long &bits, int bitIndex, int count ) : int | ||
bits | long |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( sbyte &bits ) : int | ||
bits | sbyte |
/// When this method returns, contains the specified |
Результат | int |
public Read ( sbyte &bits, int bitIndex, int count ) : int | ||
bits | sbyte |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( short &bits ) : int | ||
bits | short |
/// When this method returns, contains the specified |
Результат | int |
public Read ( short &bits, int bitIndex, int count ) : int | ||
bits | short |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( uint &bits ) : int | ||
bits | uint |
/// When this method returns, contains the specified |
Результат | int |
public Read ( uint &bits, int bitIndex, int count ) : int | ||
bits | uint |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( ulong &bits ) : int | ||
bits | ulong |
/// When this method returns, contains the specified |
Результат | int |
public Read ( ulong &bits, int bitIndex, int count ) : int | ||
bits | ulong |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Read ( ushort &bits ) : int | ||
bits | ushort |
/// When this method returns, contains the specified |
Результат | int |
public Read ( ushort &bits, int bitIndex, int count ) : int | ||
bits | ushort |
/// When this method returns, contains the specified |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | int |
public Seek ( long offset, SeekOrigin origin ) : long | ||
offset | long | /// A byte offset relative to the origin parameter. /// |
origin | SeekOrigin |
/// A value of type |
Результат | long |
public SetLength ( long value ) : void | ||
value | long | /// The desired length of the current stream in bytes. /// |
Результат | void |
public ShiftLeft ( long count ) : |
||
count | long |
/// An |
Результат |
public ShiftRight ( long count ) : |
||
count | long |
/// An |
Результат |
public static ToString ( bool bit ) : string | ||
bit | bool |
/// A |
Результат | string |
public static ToString ( byte bits ) : string | ||
bits | byte |
/// A |
Результат | string |
public static ToString ( char bits ) : string | ||
bits | char |
/// A |
Результат | string |
public static ToString ( double bits ) : string | ||
bits | double |
/// A |
Результат | string |
public static ToString ( float bits ) : string | ||
bits | float |
/// A |
Результат | string |
public static ToString ( int bits ) : string | ||
bits | int |
/// A |
Результат | string |
public static ToString ( long bits ) : string | ||
bits | long |
/// A |
Результат | string |
public static ToString ( sbyte bits ) : string | ||
bits | sbyte |
/// A |
Результат | string |
public static ToString ( short bits ) : string | ||
bits | short |
/// A |
Результат | string |
public static ToString ( uint bits ) : string | ||
bits | uint |
/// A |
Результат | string |
public static ToString ( ulong bits ) : string | ||
bits | ulong |
/// A |
Результат | string |
public static ToString ( ushort bits ) : string | ||
bits | ushort |
/// A |
Результат | string |
public Write ( bool bit ) : void | ||
bit | bool |
/// A |
Результат | void |
public Write ( bool bits, int offset, int count ) : void | ||
bits | bool |
/// A |
offset | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( byte bits ) : void | ||
bits | byte |
/// A |
Результат | void |
public Write ( byte bits, int bitIndex, int count ) : void | ||
bits | byte |
/// A |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( char bits ) : void | ||
bits | char |
/// An |
Результат | void |
public Write ( char bits, int bitIndex, int count ) : void | ||
bits | char |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( double bits ) : void | ||
bits | double |
/// A |
Результат | void |
public Write ( double bits, int bitIndex, int count ) : void | ||
bits | double |
/// A |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( float bits ) : void | ||
bits | float |
/// A |
Результат | void |
public Write ( float bits, int bitIndex, int count ) : void | ||
bits | float |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( int bits ) : void | ||
bits | int |
/// An |
Результат | void |
public Write ( int bits, int bitIndex, int count ) : void | ||
bits | int |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( long bits ) : void | ||
bits | long |
/// An |
Результат | void |
public Write ( long bits, int bitIndex, int count ) : void | ||
bits | long |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( sbyte bits ) : void | ||
bits | sbyte |
/// An |
Результат | void |
public Write ( sbyte bits, int bitIndex, int count ) : void | ||
bits | sbyte |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( short bits ) : void | ||
bits | short |
/// An |
Результат | void |
public Write ( short bits, int bitIndex, int count ) : void | ||
bits | short |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( uint bits ) : void | ||
bits | uint |
/// An |
Результат | void |
public Write ( uint bits, int bitIndex, int count ) : void | ||
bits | uint |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( ulong bits ) : void | ||
bits | ulong |
/// An |
Результат | void |
public Write ( ulong bits, int bitIndex, int count ) : void | ||
bits | ulong |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public Write ( ushort bits ) : void | ||
bits | ushort |
/// An |
Результат | void |
public Write ( ushort bits, int bitIndex, int count ) : void | ||
bits | ushort |
/// An |
bitIndex | int |
/// An |
count | int |
/// An |
Результат | void |
public WriteByte ( byte value ) : void | ||
value | byte | /// The byte to write. /// |
Результат | void |
public WriteTo ( Stream bits ) : void | ||
bits | Stream |
/// A |
Результат | void |
public Xor ( |
||
bits |
/// A |
|
Результат |