func NewDMapMessage(opcode OpCode) *DMapMessage {
	return &DMapMessage{
		Header: Header{
			Magic:   MagicDMapReq,
			Version: Version1,
		},
		DMapMessageHeader: DMapMessageHeader{
			Op: opcode,
		},
	}
}
NewDMapMessage returns a new DMapMessage with the given operation code.
package protocol
import (
	"bytes"
	"encoding/binary"
	"fmt"
)
const DMapMessageHeaderSize uint32 = 7
const (
	MagicDMapReq MagicCode = 0xE2
	MagicDMapRes MagicCode = 0xE3
)
type DMapMessageHeader struct {
	Op         OpCode      
	DMapLen    uint16      
	KeyLen     uint16      
	ExtraLen   uint8       
	StatusCode StatusCode  
}
type DMapMessage struct {
	Header
	DMapMessageHeader
	extra interface{}
	dmap  string
	key   string
	value []byte
	buf   *bytes.Buffer
}