Select the types of activity you want to include in your feed.
fix(lint): resolve E410 doc style issues and apply dune fmt
Add missing periods to doc comments, fix [name] format mismatches, rename camelCase variant constructors to snake_case in hooks.ml, and apply dune fmt formatting.
···6868 (** [cell_pointers page header_offset header] returns cell pointer array. *)
69697070 val get_u16_be : string -> int -> int
7171+7172 val get_u32_be : string -> int -> int
7373+ (** Read unsigned 32-bit big-endian integer. *)
7474+7275 val set_u16_be : bytes -> int -> int -> unit
7676+ (** Write unsigned 16-bit big-endian integer. *)
7777+7378 val set_u32_be : bytes -> int -> int -> unit
7979+ (** Write unsigned 32-bit big-endian integer. *)
7480end
75817682(** {1 Cells}
···99105 (** Index interior cell: child page + payload *)
100106101107 val max_local : usable_size:int -> is_table:bool -> int
108108+102109 val min_local : usable_size:int -> int
110110+ (** Minimum local payload size. *)
103111104112 val parse_table_leaf : string -> int -> usable_size:int -> table_leaf * int
105113 (** [parse_table_leaf buf off ~usable_size] parses a table leaf cell. Returns
+2
lib/cell.mli
···2626(** Index interior cell: child page + payload. *)
27272828val max_local : usable_size:int -> is_table:bool -> int
2929+2930val min_local : usable_size:int -> int
3131+(** Minimum local payload size. *)
30323133val parse_table_leaf : string -> int -> usable_size:int -> table_leaf * int
3234(** [parse_table_leaf buf off ~usable_size] parses a table leaf cell. Returns
+3-5
lib/index.ml
···115115 header.Page.cell_content_start - ptr_area_end - header.Page.fragmented_bytes
116116117117(* Encode an index leaf cell - handles overflow for large payloads *)
118118-let encode_index_leaf_cell_with_overflow t ~payload =
118118+let encode_leaf_cell_overflow t ~payload =
119119 let payload_size = String.length payload in
120120 let usable_size = usable_size t in
121121 let max_local = Cell.max_local ~usable_size ~is_table:false in
···367367 (* Read full payload including from overflow pages *)
368368 let full_payload = read_full_payload t page cell_off ~usable_size:usable in
369369 (* Re-encode with overflow support *)
370370- let cell_data =
371371- encode_index_leaf_cell_with_overflow t ~payload:full_payload
372372- in
370370+ let cell_data = encode_leaf_cell_overflow t ~payload:full_payload in
373371 new_cell_content_start :=
374372 write_cell new_buf ~cell_content_start:!new_cell_content_start
375373 ~cell:cell_data;
···535533let rec insert_into_leaf t page_num ~key ~parent_stack =
536534 let page = Pager.read t.pager page_num in
537535 let header = Page.parse_header page 0 in
538538- let cell = encode_index_leaf_cell_with_overflow t ~payload:key in
536536+ let cell = encode_leaf_cell_overflow t ~payload:key in
539537 let cell_len = String.length cell in
540538 let space_needed = cell_len + 2 in
541539 (* cell + pointer *)
+12
lib/page.mli
···1212 | Leaf_table (** 0x0d *)
13131414val pp_page_type : Format.formatter -> page_type -> unit
1515+1516val page_type_of_byte : int -> page_type
1717+(** Convert byte to page type. *)
1818+1619val byte_of_page_type : page_type -> int
2020+(** Convert page type to byte. *)
2121+1722val is_interior : page_type -> bool
2323+(** Check if page type is interior. *)
18241925val header_size : page_type -> int
2026(** [header_size typ] is 8 for leaf pages, 12 for interior pages. *)
···4147(** {1 Binary helpers} *)
42484349val get_u16_be : string -> int -> int
5050+4451val get_u32_be : string -> int -> int
5252+(** Read unsigned 32-bit big-endian integer. *)
5353+4554val set_u16_be : bytes -> int -> int -> unit
5555+(** Write unsigned 16-bit big-endian integer. *)
5656+4657val set_u32_be : bytes -> int -> int -> unit
5858+(** Write unsigned 32-bit big-endian integer. *)
47594860(** {1 Cell operations} *)
4961
+7
lib/record.mli
···2929 | Vtext of string
30303131val serial_type_of_int : int -> serial_type
3232+(** Convert integer to serial type. *)
3333+3234val serial_type_of_value : value -> int * int
3535+(** Convert value to serial type and byte size. *)
3636+3337val decode_int : string -> int -> int -> int64
3838+(** Decode integer from bytes at offset with given size. *)
3939+3440val encode_int : bytes -> int -> int64 -> int -> unit
4141+(** Encode integer into bytes at offset with given size. *)
35423643val decode : string -> value list
3744(** [decode payload] decodes a record from its payload bytes. *)
+1
test/test_btree.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_cell.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_index.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_page.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_pager.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_record.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_table.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)
+1
test/test_varint.mli
···11val suite : string * unit Alcotest.test_case list
22+(** Test suite. *)