Skip to content

Make the SKDataStream writeable like SKData - #2128

Merged
mattleibow merged 1 commit into
mainfrom
dev/data-stream
Jun 27, 2022
Merged

Make the SKDataStream writeable like SKData#2128
mattleibow merged 1 commit into
mainfrom
dev/data-stream

Conversation

@mattleibow

Copy link
Copy Markdown
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 thread binding/Binding/SKData.cs
Comment on lines -282 to +278
: base((byte *) host.Data, host.Size)
: base ((byte*)host.Data, host.Size, host.Size, FileAccess.ReadWrite)

Copy link
Copy Markdown
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.

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