gaia basic buffer's compare operator implement.