summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/shape.c b/shape.c
index db9e331378..7dba1015a0 100644
--- a/shape.c
+++ b/shape.c
@@ -306,6 +306,12 @@ rb_shape_id_num_bits(void)
return SHAPE_ID_NUM_BITS;
}
+int32_t
+rb_shape_id_offset(void)
+{
+ return 8 - rb_shape_id_num_bits() / 8;
+}
+
uint8_t
rb_shape_flag_shift(void)
{