code: func (p *MsgParser) SetMsgLen(lenMsgLen int, minMsgLen uint32, maxMsgLen uint32) {
  	if lenMsgLen == 1 || lenMsgLen == 2 || lenMsgLen == 4 {
  		p.lenMsgLen = lenMsgLen
  	}
  	if minMsgLen != 0 {
  		p.minMsgLen = minMsgLen
  	}
  	if maxMsgLen != 0 {
  		p.maxMsgLen = maxMsgLen
  	}
  
  	var max uint32
  	switch p.lenMsgLen {
  	case 1:
  		max = math.MaxUint8
  	case 2:
  		max = math.MaxUint16
  	case 4:
  		max = math.MaxUint32
  	}
  	if p.minMsgLen > max {
  		p.minMsgLen = max
  	}
  	if p.maxMsgLen > max {
  		p.maxMsgLen = max
  	}
  }
docs: // It's dangerous to call the method on reading or writing