QPDF::writeHGeneric(BitWriter& w, HGeneric& t)
{
    w.writeBitsInt(t.first_object, 32);                     // 1
    w.writeBitsInt(toI(t.first_object_offset), 32);         // 2
    w.writeBitsInt(t.nobjects, 32);                         // 3
    w.writeBitsInt(t.group_length, 32);                     // 4
}
QPDF::writeHGeneric(BitWriter& w, HGeneric& t)
{
    w.writeBitsInt(t.first_object, 32);                      
    w.writeBitsInt(toI(t.first_object_offset), 32);          
    w.writeBitsInt(t.nobjects, 32);                          
    w.writeBitsInt(t.group_length, 32);                      
}