mask buffer