func (r *ResumeOKFrame) LastReceivedClientPosition() uint64 {
	raw := r.Body()
	return binary.BigEndian.Uint64(raw)
}
LastReceivedClientPosition returns last received client position.
package framing
import (
	"encoding/binary"
	"github.com/rsocket/rsocket-go/core"
	"github.com/rsocket/rsocket-go/internal/common"
)
type ResumeOKFrame struct {
	*bufferedFrame
}
func NewResumeOKFrame(position uint64) *ResumeOKFrame {
	b := common.BorrowByteBuff()
	if err := core.WriteFrameHeader(b, 0, core.FrameTypeResumeOK, 0); err != nil {
		common.ReturnByteBuff(b)
		panic(err)
	}
	if err := binary.Write(b, binary.BigEndian, position); err != nil {
		common.ReturnByteBuff(b)
		panic(err)
	}
	return &ResumeOKFrame{
		bufferedFrame: newBufferedFrame(b),
	}
}
func (r *ResumeOKFrame) Validate() (err error) {
	if r.bodyLen() != 8 {
		err = errIncompleteFrame
	}
	return
}