func (cdc *Codec) MarshalBinaryLengthPrefixedWriter(w io.Writer, o interface{}) (n int64, err error) {
	var bz, _n = []byte(nil), int(0)
	bz, err = cdc.MarshalBinaryLengthPrefixed(o)
	if err != nil {
		return 0, err
	}
	_n, err = w.Write(bz) // TODO: handle overflow in 32-bit systems.
	n = int64(_n)
	return
}
func (cdc *Codec) MarshalBinaryLengthPrefixedWriter(w io.Writer, o interface{}) (n int64, err error) {
	var bz, _n = []byte(nil), int(0)
	bz, err = cdc.MarshalBinaryLengthPrefixed(o)
	if err != nil {
		return 0, err
	}
	_n, err = w.Write(bz) 
	n = int64(_n)
	return
}
func ( cdc * Codec ) MarshalBinaryLengthPrefixedWriter ( w io . Writer , o interface { } ) ( n int64 , err error ) { var bz , _n = [ ] byte ( nil ) , int ( 0 ) bz , err = cdc . MarshalBinaryLengthPrefixed ( o ) if err != nil { return 0 , err } _n , err = w . Write ( bz ) // TODO: handle overflow in 32-bit systems. n = int64 ( _n ) return }
// MarshalBinaryLengthPrefixedWriter writes the bytes as would be returned from
// MarshalBinaryLengthPrefixed to the writer w.
MarshalBinaryLengthPrefixedWriter writes the bytes as would be returned from MarshalBinaryLengthPrefixed to the writer w .