func (cdc *Codec) MarshalBinaryBare(o interface{}) ([]byte, error) {

	// Dereference value if pointer.
	var rv, _, isNilPtr = derefPointers(reflect.ValueOf(o))
	if isNilPtr {
		// NOTE: You can still do so by calling
		// `.MarshalBinaryLengthPrefixed(struct{ *SomeType })` or so on.
		panic("MarshalBinaryBare cannot marshal a nil pointer directly. Try wrapping in a struct?")
	}

	// Encode Amino:binary bytes.
	var bz []byte
	buf := new(bytes.Buffer)
	rt := rv.Type()
	info, err := cdc.getTypeInfo_wlock(rt)
	if err != nil {
		return nil, err
	}
	err = cdc.encodeReflectBinary(buf, info, rv, FieldOptions{BinFieldNum: 1}, true)
	if err != nil {
		return nil, err
	}
	bz = buf.Bytes()

	// If registered concrete, prepend prefix bytes.
	if info.Registered {
		pb := info.Prefix.Bytes()
		bz = append(pb, bz...)
	}

	return bz, nil
}
func (cdc *Codec) MarshalBinaryBare(o interface{}) ([]byte, error) {

	
	var rv, _, isNilPtr = derefPointers(reflect.ValueOf(o))
	if isNilPtr {
		
		
		panic("MarshalBinaryBare cannot marshal a nil pointer directly. Try wrapping in a struct?")
	}

	
	var bz []byte
	buf := new(bytes.Buffer)
	rt := rv.Type()
	info, err := cdc.getTypeInfo_wlock(rt)
	if err != nil {
		return nil, err
	}
	err = cdc.encodeReflectBinary(buf, info, rv, FieldOptions{BinFieldNum: 1}, true)
	if err != nil {
		return nil, err
	}
	bz = buf.Bytes()

	
	if info.Registered {
		pb := info.Prefix.Bytes()
		bz = append(pb, bz...)
	}

	return bz, nil
}
func ( cdc * Codec ) MarshalBinaryBare ( o interface { } ) ( [ ] byte , error ) { // Dereference value if pointer. var rv , _ , isNilPtr = derefPointers ( reflect . ValueOf ( o ) ) if isNilPtr { // NOTE: You can still do so by calling // `.MarshalBinaryLengthPrefixed(struct{ *SomeType })` or so on. panic ( " " ) } // Encode Amino:binary bytes. var bz [ ] byte buf := new ( bytes . Buffer ) rt := rv . Type ( ) info , err := cdc . getTypeInfo_wlock ( rt ) if err != nil { return nil , err } err = cdc . encodeReflectBinary ( buf , info , rv , FieldOptions { BinFieldNum : 1 } , true ) if err != nil { return nil , err } bz = buf . Bytes ( ) // If registered concrete, prepend prefix bytes. if info . Registered { pb := info . Prefix . Bytes ( ) bz = append ( pb , bz ... ) } return bz , nil }
// MarshalBinaryBare encodes the object o according to the Amino spec.
// MarshalBinaryBare doesn't prefix the byte-length of the encoding,
// so the caller must handle framing.
MarshalBinaryBare encodes the object o according to the Amino spec . MarshalBinaryBare doesn t prefix the byte - length of the encoding so the caller must handle framing .