Giter Site home page Giter Site logo

Comments (9)

mgravell avatar mgravell commented on September 21, 2024 1

re the original MemoryStream usage; from 0.2.1-alpha.79 the lib detects this and issues guidance

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

Wraith2 avatar Wraith2 commented on September 21, 2024

Using a Pipe directly works, though the change from Input/Output to Reader/Writer feels a bit strange. It looks like passing in a new PipeOptions(minimumSegmentSize: 1) gets me multiple segments. Not of the size I requested but of 16 bytes each, presumably a minimum size constraint somewhere which means I can't test tiny odd segments but it seems a sensible restriction for the perf of larger data.

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

Wraith2 avatar Wraith2 commented on September 21, 2024

Yup, got that just after I posted my earlier reply. I edited to reflect that but the email won't have had that in. Looks like it's working and I can bias by odd bytes interleaving utf preambles of 3 bytes if I need to. Thanks for the help.

from pipelines.sockets.unofficial.

Drawaes avatar Drawaes commented on September 21, 2024

For testing multi segment handling I wrote my own segment implementation and. Factory that takes in multiple arrays and returns Readonlysequence. That way your unit test focuses on parsing not pipes

from pipelines.sockets.unofficial.

Wraith2 avatar Wraith2 commented on September 21, 2024

That sounds like a useful bit of code to have. Any chance of getting that integrated into this library as a tool?

from pipelines.sockets.unofficial.

Drawaes avatar Drawaes commented on September 21, 2024

If @mgravell is interested in it I can take a look at making it public sure.

from pipelines.sockets.unofficial.

mgravell avatar mgravell commented on September 21, 2024

from pipelines.sockets.unofficial.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.