package camlpdf

  1. Overview
  2. Docs
type input = {
  1. pos_in : unit -> int;
  2. seek_in : int -> unit;
  3. input_char : unit -> char option;
  4. input_byte : unit -> int;
  5. in_channel_length : int;
  6. set_offset : int -> unit;
  7. caml_channel : in_channel option;
  8. source : string;
}
type output = {
  1. pos_out : unit -> int;
  2. seek_out : int -> unit;
  3. output_char : char -> unit;
  4. output_byte : int -> unit;
  5. output_string : string -> unit;
  6. out_caml_channel : out_channel option;
  7. out_channel_length : unit -> int;
}
val no_more : int
type bytes
val input_of_channel : ?source:string -> in_channel -> input
val input_of_bytes : ?source:string -> bytes -> input
val input_of_string : ?source:string -> string -> input
val output_of_channel : out_channel -> output
val input_output_of_bytes : int -> output * bytes ref
val extract_bytes_from_input_output : output -> bytes ref -> bytes
val nudge : input -> unit
val rewind : input -> unit
val peek_char : input -> char option
val peek_byte : input -> int
val read_char_back : input -> char option
val read_line : input -> string
val read_lines : input -> string list
type rawbytes
val raw_of_bytes : bytes -> rawbytes
val bytes_of_raw : rawbytes -> bytes
val mkbytes : int -> bytes
val bytes_size : bytes -> int
val fillbytes : int -> bytes -> unit
val print_bytes : bytes -> unit
val bget : bytes -> int -> int
val bget_unsafe : bytes -> int -> int
val getinit : output -> bytes -> int -> int -> unit
val bset : bytes -> int -> int -> unit
val bset_unsafe : bytes -> int -> int -> unit
val setinit : input -> bytes -> int -> int -> unit
val setinit_string : input -> string -> int -> int -> unit
val bytes_of_input : input -> int -> int -> bytes
val bytes_of_string : string -> bytes
val bytes_of_list : int list -> bytes
val bytes_of_charlist : char list -> bytes
val bytes_of_arraylist : int array list -> bytes
val bytes_of_int_array : int array -> bytes
val int_array_of_bytes : bytes -> int array
val int_array_of_string : string -> int array
val string_of_int_arrays : int array list -> string
val string_of_int_array : int array -> string
val bytes_selfmap : (int -> int) -> bytes -> unit
val string_of_bytes : bytes -> string
val charlist_of_bytes : bytes -> char list
val copybytes : bytes -> bytes
val bytes_to_output_channel : out_channel -> bytes -> unit
val bytes_of_input_channel : in_channel -> bytes
type bitstream
val bitbytes_of_input : input -> bitstream
type bitstream_position
val bitstream_pos : bitstream -> bitstream_position
val bitstream_seek : bitstream -> bitstream_position -> unit
val getbit : bitstream -> bool
val getbitint : bitstream -> int
val align : bitstream -> unit
val getval_32 : bitstream -> int -> int32
val getval_31 : bitstream -> int -> int
type bitstream_write
val make_write_bitstream : unit -> bitstream_write
val putbit : bitstream_write -> int -> unit
val putval : bitstream_write -> int -> int32 -> unit
val align_write : bitstream_write -> unit
val write_bitstream_append_aligned : bitstream_write -> bitstream_write -> bitstream_write
val bytes_of_write_bitstream : bitstream_write -> bytes
val debug_next_n_chars : int -> input -> unit
OCaml

Innovation. Community. Security.