1 write to _writeState
System.Net.Mail (1)
System\Net\Mime\Base64Encoder.cs (1)
29
_writeState
= writeStateInfo;
26 references to _writeState
System.Net.Mail (26)
System\Net\Mime\Base64Encoder.cs (26)
22
Debug.Assert(
_writeState
!= null, "_writeState was null");
23
return
_writeState
;
59
switch (
_writeState
.Padding)
89
return WriteState.CurrentLineLength + numberOfCharsToAppend +
_writeState
.FooterLength > _lineLength;
99
switch (
_writeState
.Padding)
104
_writeState
.Append(Base64EncodeMap[
_writeState
.LastBits]);
105
_writeState
.Append(Base64EncodeMap[64]);
106
_writeState
.Append(Base64EncodeMap[64]);
107
_writeState
.Padding = 0;
110
_writeState
.Append(Base64EncodeMap[
_writeState
.LastBits]);
111
_writeState
.Append(Base64EncodeMap[64]);
112
_writeState
.Padding = 0;
123
switch (
_writeState
.Padding)
126
_writeState
.Append(Base64EncodeMap[(b & 0xfc) >> 2]);
127
_writeState
.LastBits = (byte)((b & 0x03) << 4);
128
_writeState
.Padding = 2;
131
_writeState
.Append(Base64EncodeMap[
_writeState
.LastBits | ((b & 0xf0) >> 4)]);
132
_writeState
.LastBits = (byte)((b & 0x0f) << 2);
133
_writeState
.Padding = 1;
136
_writeState
.Append(Base64EncodeMap[
_writeState
.LastBits | ((b & 0xc0) >> 6)]);
137
_writeState
.Append(Base64EncodeMap[(b & 0x3f)]);
138
_writeState
.Padding = 0;