KnightOS/kernel — pull request #57 by SirCmpwn (2014-01-18 22:02:18+00:00)
Title: Export getStreamBuffer

Had to open a new pull request, since GitHub automatically closed the old one when I merged it into master to get the refactored read-only filestreams in.

**Note**: This branch is not complete, do not merge until all requirements are met.

We'll also be changing existing read-only functions to use a buffer in memory so that read functions can use the same code for each kind of stream.

#### Rewrite read-only functions to use in-memory buffer

* [x] openFileRead
* [x] streamReadByte
* [x] streamReadWord
* [x] streamReadBuffer
* [x] getStreamInfo
* [x] streamReadToEnd
* [ ] advanceBlock

#### Add writable functions

* [ ] openStreamWrite
* [ ] streamWriteByte
* [ ] streamWriteWord
* [ ] streamWriteBuffer
* [ ] flushStream
* [ ] seekStream
* [ ] Update closeStream
* [x] deleteFile
* [ ] renameFile
* [ ] deleteDirectory
* [ ] renameDirectory
* [ ] moveFile
* [ ] moveDirectory
* [ ] garbageCollect
* [ ] Update other functions to use garbageCollect when needed