func (r *reqResReader) argReader(last bool, inState reqResReaderState, outState reqResReaderState) (ArgReader, error) {
	if r.state != inState {
		return nil, r.failed(errReqResReaderStateMismatch{state: r.state, expectedState: inState})
	}

	argReader, err := r.contents.ArgReader(last)
	if err != nil {
		return nil, r.failed(err)
	}

	r.state = outState
	return argReader, nil
}
func (r *reqResReader) argReader(last bool, inState reqResReaderState, outState reqResReaderState) (ArgReader, error) {
	if r.state != inState {
		return nil, r.failed(errReqResReaderStateMismatch{state: r.state, expectedState: inState})
	}

	argReader, err := r.contents.ArgReader(last)
	if err != nil {
		return nil, r.failed(err)
	}

	r.state = outState
	return argReader, nil
}
func ( r * reqResReader ) argReader ( last bool , inState reqResReaderState , outState reqResReaderState ) ( ArgReader , error ) { if r . state != inState { return nil , r . failed ( errReqResReaderStateMismatch { state : r . state , expectedState : inState } ) } argReader , err := r . contents . ArgReader ( last ) if err != nil { return nil , r . failed ( err ) } r . state = outState return argReader , nil }
// argReader returns an ArgReader that can be used to read an argument. The
// ReadCloser must be closed once the argument has been read.
argReader returns an ArgReader that can be used to read an argument . The ReadCloser must be closed once the argument has been read .