-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
1 addition
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
76543ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
Release notes:
Breaking changes
v0.11 has a few subtle breaking changes to
eof
andseekend
.Memory(data::ByteData)
The
Memory(data::ByteData)
constructor was removed.Use
Memory(pointer(data), sizeof(data))
instead.seekend(stream::TranscodingStream)
Generic
seekend
forTranscodingStream
was removed.If the objective is to discard all remaining data in the stream, use
skip(stream, typemax(Int64))
instead wheretypemax(Int64)
is meant to be a large number to exhaust the stream.Ideally, specific implementations of
TranscodingStream
will implementseekend
only if efficient means exist to avoid fully processing the stream.NoopStream
still supportsseekend
.The previous behavior of the generic
seekend
was something like(seekstart(stream); seekend(stream.stream); stream)
but this led toinconsistencies with the position of the stream.
eof(stream::TranscodingStream)
eof
now throws an error if called on a stream that is closed or in writing mode.Use
!isreadable(stream) || eof(stream)
if you need to more closely match previous behavior.76543ed
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/110226
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: