List view
This is more convenient and more than an order of magnitude faster to use a slice directly than bytes.Buffer/Reader. New methods on Codec: // Does exactly what you think. Append(buf []byte, value T) []byte // Writes to buf. // Returns the number of bytes written. // Panics if the buffer is too small. It may have already written some bytes. Put(buf []byte, value T) int // Does exactly what you think. // Returns the value and the number of bytes read, or -1 if buf is empty and this type cannot encode zero bytes. // Panics if the buffer is too small. Get(buf []byte) (T, int)
No due date•10/10 issues closedFinish everything necessary for use by others.
No due date•0/4 issues closedComplete documentation. (done) Export whatever clients would need to write their own Codecs.
No due date•5/6 issues closed