/** * call-seq: * Rev::Buffer#empty? -> Boolean * * Is the buffer empty? */ static VALUE Rev_Buffer_empty(VALUE self) { struct buffer *buf; Data_Get_Struct(self, struct buffer, buf); return buf->size > 0 ? Qfalse : Qtrue; }