github.com/alexflint/go-memdump@v1.1.0/common.go (about)

     1  package memdump
     2  
     3  import "errors"
     4  
     5  // Protocols numbers used: (do not re-use)
     6  //  1: homogeneous protocol, April 20, 2016
     7  //  2: heterogeneous protocol, April 20, 2016
     8  
     9  const (
    10  	homogeneousProtocol   int32 = 1
    11  	heterogeneousProtocol int32 = 2
    12  )
    13  
    14  var (
    15  	// ErrIncompatibleLayout is returned by decoders when the object on the wire has
    16  	// an in-memory layout that is not compatible with the requested Go type.
    17  	ErrIncompatibleLayout = errors.New("attempted to load data with incompatible layout")
    18  )