Interface ICryptographicBufferStatics

Index

Methods

Methods

public compare(object1: IBuffer, object2: IBuffer): boolean

Parameters

Returns

boolean

public convertBinaryToString(encoding: BinaryStringEncoding, buffer: IBuffer): string

Parameters

Returns

string

public convertStringToBinary(value: string, encoding: BinaryStringEncoding): IBuffer

Parameters

Returns

IBuffer

public copyToByteArray(buffer: IBuffer): Uint8Array

Parameters

Returns

Uint8Array

public createFromByteArray(value: Uint8Array): IBuffer

Parameters

  • value: Uint8Array

Returns

IBuffer

public decodeFromBase64String(value: string): IBuffer

Parameters

  • value: string

Returns

IBuffer

public decodeFromHexString(value: string): IBuffer

Parameters

  • value: string

Returns

IBuffer

public encodeToBase64String(buffer: IBuffer): string

Parameters

Returns

string

public encodeToHexString(buffer: IBuffer): string

Parameters

Returns

string

public generateRandom(length: number): IBuffer

Parameters

  • length: number

Returns

IBuffer

public generateRandomNumber(): number

Returns

number