convert DefaultSetInfoBufferCheck and DefaultQueryInfoBufferCheck to inlined functions