Comments (6)
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.
some tests now failing, this needs a bit more work, shouldn't take long
from mscfb.
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.
sweet thanks, I'll give it a spin soon
from mscfb.
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.
Glad to hear, thx for the request
from mscfb.
Related Issues (10)
- How To Ouptput doc worddocuemt sector? HOT 3
- cycles possible when building ministream sector chain HOT 1
- how to read images from the Compound File? HOT 6
- API change: model after archive/zip HOT 2
- rather than reflect based loading of headers, use a special purpose function
- add a benchmark to verify perf chgs
- unused directory entries break sibling traversal
- Add license
- panic on govdocs file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mscfb.