StringBluffer
Method Summary
Public Methods | ||
public |
Combines two binary strings to create a new binary string containing the two. |
|
public |
Creates a binary string from a binary string. |
|
public |
createBase64(base64: string): Promise<string> Creates a binary string from a base64 encoded string. |
|
public |
Extracts the contents of a binary string as a binary string. |
|
public |
readBase64(bluffer: Buffer): Promise<string> Extracts the contents of a Buffer as a base64 string. |
|
public |
Gets the length/size (in bytes) of the binary string. |
|
public |
Creates a new binary string containing a slice of the original binary string. |
Public Methods
public combine(blufferA: string, blufferB: string, blufferN: Array<string>): Promise<string> source
Combines two binary strings to create a new binary string containing the two.
public create(text: string): Promise<string> source
Creates a binary string from a binary string.
Params:
Name | Type | Attribute | Description |
text | string |
public createBase64(base64: string): Promise<string> source
Creates a binary string from a base64 encoded string. Effectively decoding it.
Params:
Name | Type | Attribute | Description |
base64 | string |
public read(bluffer: string): Promise<string> source
Extracts the contents of a binary string as a binary string.
Params:
Name | Type | Attribute | Description |
bluffer | string |
public readBase64(bluffer: Buffer): Promise<string> source
Extracts the contents of a Buffer as a base64 string.
Params:
Name | Type | Attribute | Description |
bluffer | Buffer |