public Base64Codec(Base64Settings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } Settings = settings.ToReadOnly(); }
public Encoder(Base64Settings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } _encoder = new Base64Encoder(settings); }
public Base64Settings(Base64Settings inheritedSettings) : this(true) { if (inheritedSettings == null) { throw new ArgumentNullException(nameof(inheritedSettings)); } InheritSettings(inheritedSettings); }
public Base64Decoder(Base64Settings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } // initialize to defaults.. this = default; settings.GetDecoderSettings( out _decodingTable, out _decodingAffixTable, out _decodingPrefixes, out _decodingPostfixes, out _flags ); Reset(); }
public Base64Encoder(Base64Settings settings) { if (settings == null) { throw new ArgumentNullException(nameof(settings)); } // defaults.. this = default; settings.GetEncoderSettings( out _alphabet, out _flags, out _lineSeparator, out _maximumLineLength, out _initialAffix, out _finalAffix, out _paddingChar ); Reset(); }
public Decoder(Base64Settings settings) { _codecDecoder = new Base64Decoder(settings); }
private Base64Settings(Base64Settings inheritedSettings, bool isProtected) : this(inheritedSettings) { IsProtected = isProtected; }