Stream class for writing individual bits to a stream. Packs subsequent bytes written to the stream.
Inheritance: Stream
Esempio 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) {}
Esempio n. 2
0
		/// <summary>
		///     Initializes a new instance of the <see cref="BitBinaryReader" /> class.
		/// </summary>
		public BitBinaryReader(BitStream input)
			: this(input, Encoding.UTF8) {}
Esempio 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;
		}
Esempio 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;
		}