Stream class for writing individual bits to a stream. Packs subsequent bytes written to the stream.
Inheritance: Stream
Exemplo n.º 1
0
		/// <summary>
		///     Initializes a new instance of the <see cref="BitBinaryWriter" /> class
		///     with the underlying <paramref name="stream" /> and default encoding (UTF8).
		/// </summary>
		public BitBinaryWriter(BitStream stream)
			: this(stream, Encoding.UTF8) {}
Exemplo n.º 2
0
		/// <summary>
		///     Initializes a new instance of the <see cref="BitBinaryReader" /> class.
		/// </summary>
		public BitBinaryReader(BitStream input)
			: this(input, Encoding.UTF8) {}
Exemplo n.º 3
0
		/// <summary>
		///     Initializes a new instance of the <see cref="BitBinaryWriter" /> class
		///     with the underlying <paramref name="stream" /> and <paramref name="encoding" />.
		/// </summary>
		public BitBinaryWriter(BitStream stream, Encoding encoding)
			: base(stream, encoding)
		{
			_stream = stream;
		}
Exemplo n.º 4
0
		/// <summary>
		///     Initializes a new instance of the <see cref="BitBinaryReader" /> class.
		/// </summary>
		public BitBinaryReader(BitStream input, Encoding encoding)
			: base(input, encoding)
		{
			_reader = input;
		}