Commit a1fc133e authored by Aaron Jacobs's avatar Aaron Jacobs

Finished OutMessage.

parent a25c297e
......@@ -117,10 +117,10 @@ func (b *OutMessage) AppendString(src string) {
// Return the current size of the buffer.
func (b *OutMessage) Len() int {
panic("TODO")
return int(b.offset)
}
// Return a reference to the current contents of the buffer.
func (b *OutMessage) Bytes() []byte {
panic("TODO")
return b.storage[:int(b.offset)]
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment