func NewUserGroupFromBytes(data []byte) *UserGroup { o := new(UserGroup) transport := thrift.NewStreamTransportR(bytes.NewBuffer(data)) protocol := thrift.NewTCompactProtocol(transport) o.Read(protocol) return o }
func (p *UserGroup) ToBytes() []byte { transport := thrift.NewTMemoryBuffer() protocol := thrift.NewTCompactProtocol(transport) p.Write(protocol) protocol.Flush() return transport.Bytes() }