4 module type TagType = sig
6 val to_base : t -> int * SwfBaseOut.t list
9 module Make(Tag : TagType) = struct
13 let of_rect {top; bottom; left; right} =
14 `Rect(left,right,top,bottom)
17 let make_type t size =
18 `Ui16 ((t lsl 6) lor size) in
22 List.length @@ SwfBaseOut.to_list data' in
24 make_type tag size :: data'
26 make_type tag 0x3F :: `Si32 (Int32.of_int size) :: data'
30 char 'F'; char 'W'; char 'S';
41 ] @ HList.concat_map of_tag t.tags