Simple Binary Stream Reader/Writer
This package contains a set of simple utility reader and writer that can be used to efficiently read/write binary information over the wire.
In order to use it, you can simply instantiate either a
Reader or a
Writer which require an
io.Writer respectively. Here's a simple example
// Fake stream stream := bytes.NewBuffer(nil) // Write some data into the stream... w := iostream.NewWriter(stream) w.WriteString("Roman") w.WriteUint32(36) // Read the data back... r := iostream.NewReader(stream) name, err := r.ReadString() age, err := r.ReadUint32()
We are open to contributions, feel free to submit a pull request and we'll review it as quickly as we can. This library is maintained by Roman Atachiants
Tile is licensed under the MIT License.