github.com/geniusesgroup/libgo@v0.0.0-20220713101832-828057a9d3d4/syllab/marshal-unmarshal.go (about)

     1  /* For license and copyright information please see LEGAL file in repository */
     2  
     3  package syllab
     4  
     5  /*
     6  	********************PAY ATTENTION:*******************
     7  	We don't suggest use these 2 func instead use CompleteEncoderMethodSafe() to autogenerate needed code before compile time
     8  	and reduce runtime proccess to improve performance of the app and gain max performance from this protocol!
     9  */
    10  
    11  // Marshal encodes the value of s to the payload buffer in runtime.
    12  // offset add free space by given number at begging of return slice that almost just use in sRPC protocol! It can be 0!!
    13  func Marshal(s interface{}, offset int) (p []byte, err error) {
    14  	return
    15  }
    16  
    17  // UnMarshal decode payload and stores the result in the value pointed to by s in runtime.
    18  func UnMarshal(p []byte, s interface{}) (err error) {
    19  	return
    20  }