Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescriptify hoard #87

Merged
merged 1 commit into from
Feb 24, 2020
Merged

typescriptify hoard #87

merged 1 commit into from
Feb 24, 2020

Conversation

gregdhill
Copy link
Contributor

@gregdhill gregdhill commented Jan 6, 2020

// Reads from the provided byteStream until a varint length-prefixed prefix of the stream can be returned.
// The stream will be destroyed once the prefix has been read so will not be totally consumed
export async function ReadLengthPrefixed(stream: Readable, byteLength: number): Promise<Buffer> {
let buffer = Buffer.alloc(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are we still using this?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Signed-off-by: Gregory Hill <gregorydhill@outlook.com>
@ommish ommish merged commit ba06ab7 into monax:master Feb 24, 2020
@gregdhill gregdhill deleted the typescript branch February 25, 2020 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants