Finished OutMessage.

geesefs-0-30-9
Aaron Jacobs 2015-07-28 16:29:30 +10:00
parent a25c297e41
commit a1fc133e32
1 changed files with 2 additions and 2 deletions

View File

@ -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)]
}