Esempio n. 1
0
 /// <summary>Initializes a new <see cref="EightBitDecoder"/> with the given <see cref="BinaryEncoder"/>. If the encoder is null,
 /// characters will simply be expanded without being encoded first.
 /// </summary>
 public EightBitDecoder(BinaryEncoder decoder)
 {
     this.decoder = decoder;
 }
Esempio n. 2
0
 /// <summary>Initializes a new <see cref="EightBitEncoding"/> that truncates characters to 8 bits and encodes and decodes them
 /// with the given encoder and decoder.
 /// </summary>
 public EightBitEncoding(BinaryEncoder encoder, BinaryEncoder decoder)
     : base(new EightBitEncoder(encoder), new EightBitDecoder(decoder))
 {
     this.encoder = encoder;
     this.decoder = decoder;
 }
Esempio n. 3
0
 /// <summary>Initializes a new <see cref="EightBitEncoder"/> with the given <see cref="BinaryEncoder"/>. If the encoder is null,
 /// characters will simply be truncated without being encoded.
 /// </summary>
 public EightBitEncoder(BinaryEncoder encoder)
 {
     this.encoder = encoder;
 }