int curPathIndex = 0;
iprot.readStructBegin();
while (curPathIndex < fieldIdPath.length) {
TField field = iprot.readFieldBegin();
// we can stop searching if we either see a stop or we go past the field
// id we're looking for (since fields should now be serialized in asc
// order).
if (field.type == TType.STOP || field.id > fieldIdPath[curPathIndex]) {
return;