How to cut sample buffer?

hi, i would like to cut from the beginning of a samplebuffer to the middle of the samplebuffer.

how is this done, please?
i’d like to retain, only the second half of the samplebuffer