zero alloc WriteTo

This commit is contained in:
Todd Gruben 2017-09-01 14:56:14 -05:00
parent eb98bdd8c6
commit c418d73fa7

View file

@ -518,7 +518,7 @@ func (b *Bitmap) Optimize() {
}
}
//hoping this inines
//hoping this in-lines
func WriteUint16(w io.Writer, b []byte, v uint16) (int, error) {
binary.LittleEndian.PutUint16(b, v)
return w.Write(b)