Specify that append methods panic.

geesefs-0-30-9
Aaron Jacobs 2015-07-28 16:17:56 +10:00
parent 384f32c2a3
commit 5b3f5df8cc
1 changed files with 2 additions and 2 deletions

View File

@ -58,13 +58,13 @@ func (b *OutMessage) GrowNoZero(size uintptr) (p unsafe.Pointer) {
} }
// Equivalent to growing by the length of p, then copying p over the new // Equivalent to growing by the length of p, then copying p over the new
// segment. // segment. Panics if there is not enough room available.
func (b *OutMessage) Append(p []byte) { func (b *OutMessage) Append(p []byte) {
panic("TODO") panic("TODO")
} }
// Equivalent to growing by the length of s, then copying s over the new // Equivalent to growing by the length of s, then copying s over the new
// segment. // segment. Panics if there is not enough room available.
func (b *OutMessage) AppendString(s string) { func (b *OutMessage) AppendString(s string) {
panic("TODO") panic("TODO")
} }