mirror of
https://github.com/duanhf2012/origin.git
synced 2026-02-03 22:45:13 +08:00
12 lines
263 B
Go
12 lines
263 B
Go
package processor
|
|
|
|
type IProcessor interface {
|
|
//SetByteOrder(littleEndian bool)
|
|
//SetMsgLen(lenMsgLen int, minMsgLen uint32, maxMsgLen uint32)
|
|
|
|
Unmarshal(data []byte) (interface{}, error)
|
|
// must goroutine safe
|
|
Marshal(msg interface{}) ([][]byte, error)
|
|
}
|
|
|