native parser #readHeadBytes now supports length