Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
class System.​Security.​Cryptography.​ToBase64Transform
Assembly: System.Security.Cryptography
Inheritance: object → ToBase64Transform
Converts a <see cref="T:System.Security.Cryptography.CryptoStream" /> to base 64.
Properties
public
bool
CanReuseTransform
Gets a value indicating whether the current transform can be reused.
public
bool
CanTransformMultipleBlocks
Gets a value that indicates whether multiple blocks can be transformed.
public
int
InputBlockSize
Gets the input block size.
public
int
OutputBlockSize
Gets the output block size.
Methods
public
void
Clear​()
Releases all resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> .
public
void
Dispose​()
Releases all resources used by the current instance of the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> class.
protected
void
Dispose​(bool disposing)
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged resources.
Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> and optionally releases the managed resources.
protected
void
Finalize​()
Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> .
public
int
TransformBlock​(byte[] inputBuffer,
int inputOffset,
int inputCount,
byte[] outputBuffer,
int outputOffset)
inputBuffer
The input to compute to base 64.
inputOffset
The offset into the input byte array from which to begin using data.
inputCount
The number of bytes in the input byte array to use as data.
outputBuffer
The output to which to write the result.
outputOffset
The offset into the output byte array from which to begin writing data.
Returns The number of bytes written.
Converts the specified region of the input byte array to base 64 and copies the result to the specified region of the output byte array.
public
byte[]
TransformFinalBlock​(byte[] inputBuffer,
int inputOffset,
int inputCount)
inputBuffer
The input to convert to base 64.
inputOffset
The offset into the byte array from which to begin using data.
inputCount
The number of bytes in the byte array to use as data.
Returns The computed base 64 conversion.
Converts the specified region of the specified byte array to base 64.
public
bool
Equals​(object obj)
Inherited from object
public
int
GetHashCode​()
Inherited from object
protected
object
MemberwiseClone​()
Inherited from object
public
string
ToString​()
Inherited from object