Documentation ¶
Index ¶
- func Generate(globals *model.Globals) (data []byte, err error)
- func MakeTag(globals *model.Globals, tf *model.TypeDefine, fieldIndex int) uint32
- type BinaryWriter
- func (self *BinaryWriter) Bytes() []byte
- func (self *BinaryWriter) Write(b []byte) (int, error)
- func (self *BinaryWriter) WriteBool(x bool) error
- func (self *BinaryWriter) WriteFloat32(x float32) error
- func (self *BinaryWriter) WriteInt16(x int16) error
- func (self *BinaryWriter) WriteInt32(x int32) error
- func (self *BinaryWriter) WriteInt64(x int64) error
- func (self *BinaryWriter) WriteString(x string) error
- func (self *BinaryWriter) WriteUInt16(x uint16) error
- func (self *BinaryWriter) WriteUInt32(x uint32) error
- func (self *BinaryWriter) WriteUInt64(x uint64) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BinaryWriter ¶
type BinaryWriter struct {
// contains filtered or unexported fields
}
func NewBinaryWriter ¶
func NewBinaryWriter() *BinaryWriter
func (*BinaryWriter) Bytes ¶
func (self *BinaryWriter) Bytes() []byte
func (*BinaryWriter) WriteBool ¶
func (self *BinaryWriter) WriteBool(x bool) error
func (*BinaryWriter) WriteFloat32 ¶
func (self *BinaryWriter) WriteFloat32(x float32) error
func (*BinaryWriter) WriteInt16 ¶
func (self *BinaryWriter) WriteInt16(x int16) error
func (*BinaryWriter) WriteInt32 ¶
func (self *BinaryWriter) WriteInt32(x int32) error
func (*BinaryWriter) WriteInt64 ¶
func (self *BinaryWriter) WriteInt64(x int64) error
func (*BinaryWriter) WriteString ¶
func (self *BinaryWriter) WriteString(x string) error
func (*BinaryWriter) WriteUInt16 ¶
func (self *BinaryWriter) WriteUInt16(x uint16) error
func (*BinaryWriter) WriteUInt32 ¶
func (self *BinaryWriter) WriteUInt32(x uint32) error
func (*BinaryWriter) WriteUInt64 ¶
func (self *BinaryWriter) WriteUInt64(x uint64) error
Click to show internal directories.
Click to hide internal directories.