Skip to content
On this page

AthenaShared.utility.buffer.AthenaBuffer

shared/utility/buffer.AthenaBuffer

Constructors

constructor

new AthenaBuffer()

Methods

fromBuffer

Usage

AthenaShared.utility.buffer.AthenaBuffer.Static fromBuffer(data): string

Turns a buffer into a string.

Static

Parameters

NameType
datastring[]

Returns

string

Defined in

shared/utility/buffer.ts:23


toBuffer

Usage

AthenaShared.utility.buffer.AthenaBuffer.Static toBuffer(data, size?): string[]

Create a String Buffer from a string. Splits huge strings into a larger array.

Static

Parameters

NameTypeDefault value
datastringundefined
sizenumber512

Returns

string[]

Defined in

shared/utility/buffer.ts:11

Created by Stuyk | Est. 2020