use m_getcl/m_gethdr depending from len