Home Manual Reference Source
public class | source

StringBluffer

Method Summary

Public Methods
public

combine(blufferA: string, blufferB: string, blufferN: Array<string>): Promise<string>

Combines two binary strings to create a new binary string containing the two.

public

Creates a binary string from a binary string.

public

Creates a binary string from a base64 encoded string.

public

read(bluffer: string): Promise<string>

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

size(bluffer: Buffer): number

Gets the length/size (in bytes) of the binary string.

public

slice(bluffer: string, start: number, end: number): Promise<string>

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.

Params:

NameTypeAttributeDescription
blufferA string
blufferB string
blufferN Array<string>

Return:

Promise<string>

public create(text: string): Promise<string> source

Creates a binary string from a binary string.

Params:

NameTypeAttributeDescription
text string

Return:

Promise<string>

public createBase64(base64: string): Promise<string> source

Creates a binary string from a base64 encoded string. Effectively decoding it.

Params:

NameTypeAttributeDescription
base64 string

Return:

Promise<string>

public read(bluffer: string): Promise<string> source

Extracts the contents of a binary string as a binary string.

Params:

NameTypeAttributeDescription
bluffer string

Return:

Promise<string>

public readBase64(bluffer: Buffer): Promise<string> source

Extracts the contents of a Buffer as a base64 string.

Params:

NameTypeAttributeDescription
bluffer Buffer

Return:

Promise<string>

public size(bluffer: Buffer): number source

Gets the length/size (in bytes) of the binary string.

Params:

NameTypeAttributeDescription
bluffer Buffer

Return:

number

public slice(bluffer: string, start: number, end: number): Promise<string> source

Creates a new binary string containing a slice of the original binary string.

Params:

NameTypeAttributeDescription
bluffer string
start number
end number

Return:

Promise<string>