func (b *Buffer) WriteNetUint8(u uint8) error {
	return b.Append([]byte{u})
}
Write 8bit binary value to Buffer.
package streambuf
import (
	"github.com/elastic/beats/libbeat/common"
)
func (b *Buffer) ReadNetUint8() (uint8, error) {
	if b.Failed() {
		return 0, b.err
	}
	tmp := b.data[b.mark:]
	if err := b.Advance(1); err != nil {
		return 0, err
	}
	value := tmp[0]
	return value, nil
}