Code Monkey home page Code Monkey logo

Comments (6)

richardlehane avatar richardlehane commented on May 18, 2024

Hi cgilling
I've just had a quick go at adding the io.Seeker and io.Writer interfaces to File objects.
This should allow you to seek within a File and change bytes.
Make sure your underlying source is an io.WriterAt and has write permissions if a file.

Current implementation is quick and nasty and the test function (https://github.com/richardlehane/mscfb/blob/master/mscfb_test.go#L146) isn't at all comprehensive. So please consider this experimental feature for now.

Will be interested to hear how you get on with it.

cheers
Richard

from mscfb.

richardlehane avatar richardlehane commented on May 18, 2024

some tests now failing, this needs a bit more work, shouldn't take long

from mscfb.

richardlehane avatar richardlehane commented on May 18, 2024

basic tests, now passing. Added ReadAt() and WriteAt() methods too. See doco at https://godoc.org/github.com/richardlehane/mscfb for usage. Think this is ready to go now.

from mscfb.

cgilling avatar cgilling commented on May 18, 2024

sweet thanks, I'll give it a spin soon

from mscfb.

cgilling avatar cgilling commented on May 18, 2024

Just a quick update, works great, I was able to implement what I wanted and sent 100,000 random documents through it (of various filetypes include non mscfb filetypes) and no crashing.

Thanks again for the quick turnaround on the request

from mscfb.

richardlehane avatar richardlehane commented on May 18, 2024

Glad to hear, thx for the request

from mscfb.

Related Issues (10)

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.