Menu

#3 Add random read/write access for streams

2.0
closed
nobody
5
2013-04-17
2013-02-08
Jarred
No

Add random read/write access for streams.

Preferably by implementing the Stream interface, or at the least something like:
int Read(long streamPosition, byte[] buffer, int offset, int len)
void Write(long streamPosition, byte[] buffer, int offset, int len)

Discussion

  • Federico

    Federico - 2013-02-12

    Thank you for your advices JArred
    Random access feature for reading is already present with the CFStream overloaded method

    public Byte[] GetData(long offset, ref int count){...}

    while the write part could be a nice thing to add to OpenMcdf.

    Best Regards,
    Federico

     
  • Federico

    Federico - 2013-02-12
    • labels: --> Random Write Access
    • status: open --> accepted
    • milestone: --> 2.0
     
  • Jarred

    Jarred - 2013-02-13

    It is faster and more compatible with other apis to be able to read into an existing buffer rather than return a new byte array each time.

    Those 2 methods would be enough to make a Stream wrapper for it without too much overhead.

     
  • Federico

    Federico - 2013-04-17
    • labels: Random Write Access --> Random Write Access, OpenMcdf.Extensions
    • status: accepted --> closed
     

Log in to post a comment.

MongoDB Logo MongoDB