Skip to content

Have Blob use BufferSource for arrayBuffer() also#3097

Merged
jasnell merged 1 commit intomainfrom
jsnell/blob-use-buffersource-for-reads
Nov 12, 2024
Merged

Have Blob use BufferSource for arrayBuffer() also#3097
jasnell merged 1 commit intomainfrom
jsnell/blob-use-buffersource-for-reads

Conversation

@jasnell
Copy link
Collaborator

@jasnell jasnell commented Nov 12, 2024

Avoid use of the kj::Array<kj::byte> type wrapping entirely for reads (arrayBuffer() as well as bytes())

@jasnell jasnell requested review from anonrig and erikcorry November 12, 2024 18:13
@jasnell jasnell requested review from a team as code owners November 12, 2024 18:13
Copy link
Member

@anonrig anonrig left a comment

Choose a reason for hiding this comment

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

This should apply to all zlib functions as well, I suppose.

@jasnell
Copy link
Collaborator Author

jasnell commented Nov 12, 2024

This should apply to all zlib functions as well, I suppose.

There will be quite a few places to make this change. I'll be going through them incrementally with a number of small PRs

Avoid use of the `kj::Array<kj::byte>` type wrapping entirely for
reads (`arrayBuffer()` as well as `bytes()`)
@jasnell jasnell force-pushed the jsnell/blob-use-buffersource-for-reads branch from b806110 to 56c6529 Compare November 12, 2024 19:38
@jasnell jasnell merged commit 88eab86 into main Nov 12, 2024
@jasnell jasnell deleted the jsnell/blob-use-buffersource-for-reads branch November 12, 2024 20:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants