Wraper for Buffer class which keeps track of position and supports arrays