API for Buffer
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 35/100
Research direction
Start by reviewing the TranscodingStream and read Buffer internals named in the issue, especially data, markpos, bufferpos, and marginpos, and compare how Automa accesses them. The work is done when TranscodingStreams exposes the required state through a documented API, including the intended Buffer access, without requiring Automa to use internals.
Written by the indexing model from the issue text.
Description
I was taking with @nhz2 about how Automa (and presumably other packages) use internals from TranscodingStreams, and how it would be nice to make it stop doing that. However, TS was created by the same author as Automa, and the two packages' internals are entangled. So, for Automa to not rely on TS internals, TS needs to offer these things as API. In particular:
- Access to the
.datafield of aTranscodingStream, either as aVector{UInt8}or potentiallyMemory{UInt8}going forward - Get and set the
.markposand.bufferposfields of the readBufferof a stream - Get the
.marginposof the readBufferof a stream
Ideally, the Buffer object can also be obtained so the user can manipulate the Buffer directly.
Another approach is for Automa to stop using TranscodingStreams, and instead use something like BufferedStreams.jl. However, I believe TranscodingStreams might have originally been implemented to support Automa.
- Dominant language
- Julia
- Stars
- 90
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JuliaIO/TranscodingStreams.jl
-
Allow generic `DenseVector{UInt8}` as input/outputPossibly taken @nhz2 claimed this 460 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 45/100
JuliaIO/TranscodingStreams.jl#247 · 2 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
JuliaIO/TranscodingStreams.jl#246 · 1 comment ·
-
Support libaec?Open
Difficulty 3/5 1-2 days Newbie friendliness 25/100
JuliaIO/TranscodingStreams.jl#207 · 2 comments ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
JuliaIO/TranscodingStreams.jl#188 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
JuliaIO/TranscodingStreams.jl#165 ·
All issues in JuliaIO/TranscodingStreams.jl
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
-
question
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
brown-ccv/Chamber.jl#272 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAstro/SolarPosition.jl#143 ·
-
distributions
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
JuliaBayes/Wren.jl#404 · 2 comments ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
JuliaAI/MLJTransforms.jl#113 ·
Maintainers usually reply within 1 day