func (s *Serializer) Write(data interface{}) error {
	return binary.Write(s.buffer, binary.LittleEndian, data)
}
Write writes binary data into the serializer
package rmnp
import (
	"bytes"
	"encoding/binary"
)
type Serializer struct {
	buffer *bytes.Buffer
}
func NewSerializer() *Serializer {
	return &Serializer{new(bytes.Buffer)}
}
func NewSerializerFor(buffer []byte) *Serializer {
	return &Serializer{bytes.NewBuffer(buffer)}
}
func (s *Serializer) Read(data interface{}) error {
	return binary.Read(s.buffer, binary.LittleEndian, data)
}
func (s *Serializer) ReadPanic(data interface{}) {
	if s.Read(data) != nil {
		panic(0)
	}
}