text
stringlengths
0
601k
let rect_nbits r = r . rect_nbits
let bigrect_nbits r = r . brect_nbits
let rgba_nbits c = max
let cxa_nbits c = c . cxa_nbits
let matrix_part_nbits m = m . m_nbits
let string_length s = String . length s + 1
let shape_array_length f s =
let shape_new_styles_length s = 1
let text_record_length t r =
let place_object_length p v3 = 3 else 0 ) 0
let rec tag_data_length = function 0 0 4 rgb_length 0 2 4 4
let skip ch n =
let read_rgba ch = { }
let read_rgb ch = { }
let read_gradient ch is_rgba = in in else
let read_rect ch = { }
let rec read_multi_bits b n = else
let read_big_rect ch = { }
let read_matrix ch = { } in { }
let read_cxa ch = { } in { }
let write_rgb ch c =
let write_rgba ch c =
let write_color ch = function
let write_gradient ch = function
let write_rect ch r =
let rec write_multi_bits b n l = else
let write_big_rect ch r =
let write_matrix ch m = in ) ;
let write_cxa ch c = ) ;
let write_event ch evt =
let parse_clip_events ch = [ ] end ; in loop ( loop ) loop
let parse_shape_fill_style ch vshape = }
let parse_shape_line_style ch vshape = { } { }
let parse_shape_array f ch vshape =
let parse_shape_style_change_record ch b flags nlbits nfbits vshape = None ) None in } None { }
let parse_shape_curved_edge_record b flags = { }
let parse_shape_straight_edge_record b flags = else else in { }
let parse_shape_records ch nlbits nfbits vshape = [ ] else else in in loop ( loop ) loop
let parse_shape_with_style ch vshape = { } }
let parse_shape ch len vshape = else None { }
let extract_jpg_table data = in
let parse_bitmap_lossless ch len = { }
let parse_text ch is_txt2 = { } in [ ] else in { }
let parse_edit_text_layout ch = { }
let parse_edit_text ch = else { }
let parse_cid_data ch len = { }
let parse_morph_shape ch len = { }
let parse_filter_gradient ch = { }
let rec parse_button_records ch color = [ ] else
let rec parse_button_actions ch = [ bta ] bta else
let parse_button2 ch len = { }
let parse_place_object ch v3 = { }
let parse_import ch = { }
let rec parse_tag ch h = else TEnd TShowFrame } } } } } TProtect } } { } in } } [ ] else { in else in } { } in
let parse ch = data
let rec tag_id = function
let write_clip_event ch c =
let write_clip_events ch event_list = write_ui16 ch 0 ;
let write_shape_fill_style ch s =
let write_shape_line_style ch l =
let write_shape_array ch f sl =
let write_shape_style_change_record ch b nlbits nfbits s =
let write_shape_record ch b nlbits nfbits = function
let write_shape_without_style ch s =
let write_shape_with_style ch s =
let write_shape ch s =
let write_bitmap_lossless ch b =
let write_morph_shape ch s =
let write_text_record ch t r =
let write_text ch t =
let write_edit_text_layout ch l =
let write_edit_text ch t = ] ) ;
let write_cid_data ch c =
let write_filter_gradient ch fg =
let write_filter ch = function
let write_button_record ch r =
let rec write_button_actions ch = function
let write_button2 ch b =
let write_place_object ch p v3 = p . po_move ; ] ) ; end
let rec write_tag_data ch = function ( ) ( ) ( ) ) ; end ;
let write ch ( h , tags ) tags = in
let scan fid f t = ( ) in ( ) ( )
let init inflate deflate = ; ;
type picture = { }
let error msg = raise ( Error msg ) msg
let unsigned v n = else v
let load_picture file id = { done ; } done ; } }
let make_clip name pics baseid = } ; } ; } ; } ; } ; ] ; } ; } ; } ; } ; } ; ] ; } ; } ; } in [ ] else in { } in } ; } ] ; ]
type ' a shared = Shared of ' a | Single of ' a
type ( ' a , ' ctx ) t_store = { act_get : unit -> ' a array ; act_get_shared : unit -> ' a shared array ; act_store : ' ctx -> ' a -> int ; act_store_shared : ' ctx -> ' a -> int ; }
module type Stored = sig type t type key val compare_key : key -> key -> int val make_key : t -> key option end
module type CtxStored = sig include Stored type context val make_key : context -> t -> key option end
module CtxStore ( A : CtxStored ) = struct module AMap = Map . Make ( struct type t = A . key let compare = A . compare_key end ) type intern = { mutable map : ( bool * int ) AMap . t ; mutable next : int ; mutable acts : ( bool * A . t ) list ; } let mk_store ( ) = let st = { map = AMap . empty ; next = 0 ; acts = [ ]...
module Store ( A : Stored ) = struct module Me = CtxStore ( struct include A type context = unit let make_key ( ) = A . make_key end ) let mk_store = Me . mk_store end
module type S = sig type primitive val eqint : primitive val neint : primitive val leint : primitive val ltint : primitive val geint : primitive val gtint : primitive type act val bind : act -> ( act -> act ) -> act val make_const : int -> act val make_offset : act -> int -> act val make_prim : primitive -> act list ->...
module Make ( Arg : S ) = struct type ' a inter = { cases : ( int * int * int ) array ; actions : ' a array } type ' a t_ctx = { off : int ; arg : ' a } let cut = ref 8 and more_cut = ref 16 let get_act cases i = let _ , _ , r = cases . ( i ) in r and get_low cases i = let r , _ , _ = cases . ( i ) in r type ctests = {...
type _ handle = | Nothing : unit handle | BigString : Bigbuffer . bigstring handle | String : string handle | Strings : string list handle | Catalog : Kfiles . catalog_item list handle | Info : ( string * int ) handle | JSON : Yojson . Basic . t handle | Influence_map : ( Public_data . accuracy_level * int * int option...
type box = B : ' a handle * ( ' a , Result_util . message list ) Result_util . t Lwt . u -> box
type mailbox = ( int , box ) Hashtbl . t
let new_mailbox ( ) = Hashtbl . create 2