优化processor

This commit is contained in:
duanhf2012
2020-03-28 10:36:49 +08:00
parent 62acc96412
commit 0ddeceb977
5 changed files with 19 additions and 27 deletions

View File

@@ -1,11 +0,0 @@
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)
}