Add Implementation of getBuffer