Quark
Quark copied to clipboard
Implementation of Buffer class
Since we want to mimic Node as much as possible, the first system is to mimic the file system. For this we will need two separate implementations. This would be the Buffer class and the Stream Class. To implement the Stream class, we will need the Buffer class.
Buffer will have all of the following from the node api: Node Buffer API
I have merged a semi-stable version of the Buffer class into the mainline branch. The testing of this code will be done when I start to implement the Stream interface, but I noticed that EventEmitter needs to be implemented first, so I will be doing that.