Enable signaling EOF by passing NULL for the buffer