Gfls.BytesRegionBuilder¶
Fields¶
None
Methods¶
|
|
Details¶
- class Gfls.BytesRegionBuilder¶
- append(sub_region_length, is_part_of_region)¶
- Parameters:
Appends a sub-region at the end.
If is_part_of_region is
Falseit creates a hole.Contiguous sub-regions of the same kind are merged and will thus be treated as a single sub-region. So you can conveniently call this function several times in a row with the same value for is_part_of_region.
In order to create a
Gfls.BytesRegionthat will traverse a wholeGLib.Bytes, it is required to call this function the right amount of times, even if it ends with a hole. See alsoGfls.BytesRegion.match_bytes().New in version 0.4.