private GetTempBuffer ( byte inputBuffer, int inputOffset, int inputCount, int &effectiveCount ) : byte[] | ||
inputBuffer | byte | |
inputOffset | int | |
inputCount | int | |
effectiveCount | int | |
리턴 | byte[] |
private byte[] GetTempBuffer(byte[] inputBuffer, int inputOffset, int inputCount, out int effectiveCount)
{
byte[] temp;
if (_whitespaces == FromBase64TransformMode.IgnoreWhiteSpaces)
{
temp = DiscardWhiteSpaces(inputBuffer, inputOffset, inputCount);
effectiveCount = temp.Length;
}
else
{
temp = new byte[inputCount];
Buffer.BlockCopy(inputBuffer, inputOffset, temp, 0, inputCount);
effectiveCount = inputCount;
}
return temp;
}