code: func allocParseBuf(size int) ([]byte, error) {
  	if size < 0 || size > maxParseBufSize {
  		return nil, messageSizeError(size)
  	}
  
  	return make([]byte, size), nil
  }
docs: // allocParseBuf is used to allocate buffers used for parsing