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
Implemented Interfaces
- ICryptoTransform (Inherits: IDisposable)
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)
Releases the unmanaged resources used by the <see cref="T:System.Security.Cryptography.ToBase64Transform" /> and optionally releases the managed resources.
disposing
<see langword="true" /> to release both managed and unmanaged resources; <see langword="false" /> to release only unmanaged 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)
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.
Returns The number of bytes written.
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.
public
byte[]
TransformFinalBlock​(byte[] inputBuffer,
int inputOffset,
int inputCount)
Converts the specified region of the specified byte array to base 64.
Returns The computed base 64 conversion.
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.
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