Renamed getSizeOfBuffer method to getSize.