Decodes base64 encoded bytes.
Declaration Syntax
C# | Visual Basic | Visual C++ | F# |
public int Decode( byte[] encBuffer, int encOffset, int encCount, byte[] buffer, int offset, bool ignoreNonBase64Chars )
Public Function Decode ( encBuffer As Byte(), encOffset As Integer, encCount As Integer, buffer As Byte(), offset As Integer, ignoreNonBase64Chars As Boolean ) As Integer
public: int Decode( array<unsigned char>^ encBuffer, int encOffset, int encCount, array<unsigned char>^ buffer, int offset, bool ignoreNonBase64Chars )
member Decode : encBuffer : byte[] * encOffset : int * encCount : int * buffer : byte[] * offset : int * ignoreNonBase64Chars : bool -> int
Parameters
- encBuffer (array<Byte>[]()[][])
- Base64 encoded data buffer.
- encOffset (Int32)
- Offset in the encBuffer.
- encCount (Int32)
- Number of bytes available in the encBuffer.
- buffer (array<Byte>[]()[][])
- Buffer where to decode data.
- offset (Int32)
- Offset int the buffer.
- ignoreNonBase64Chars (Boolean)
- If true all invalid base64 chars ignored. If false, FormatException is raised.
Return Value
Int32
Returns number of bytes decoded.
Returns number of bytes decoded.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | Is raised when encBuffer or encBuffer is null reference. |
ArgumentOutOfRangeException | Is raised when any of the arguments has out of valid range. |
FormatException | Is raised when encBuffer contains invalid base64 data. |
Assembly: LumiSoft.Net (Module: LumiSoft.Net.dll) Version: 4.5.5510.19119