pothos-library: change managed buffer api to get buffer chunk