buffer 逻辑变更