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

Make the SKDataStream writeable like SKData #2128

Merged
merged 1 commit into from
Jun 27, 2022
Merged

Conversation

mattleibow
Copy link
Contributor

Description of Change

This PR makes SKData.AsStream() a writeable stream so that it can be used to write to the data object.

Bugs Fixed
None.

API Changes

None.

Behavioral Changes

Makes the stream returned by SKData.AsStream() writeable.

Required skia PR

None.

PR Checklist

  • Has tests (if omitted, state reason in description)
  • Rebased on top of main at time of PR
  • Merged related skia PRs
  • Changes adhere to coding standard
  • Updated documentation

Comment on lines -282 to +278
: base((byte *) host.Data, host.Size)
: base ((byte*)host.Data, host.Size, host.Size, FileAccess.ReadWrite)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is the real change here.

@mattleibow mattleibow merged commit 45cfd16 into main Jun 27, 2022
@mattleibow mattleibow added this to the v2.88.1 milestone Aug 4, 2022
@mattleibow mattleibow deleted the dev/data-stream branch August 4, 2022 11:08
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.

1 participant