1 let w8 s pos i
= String.set s pos
(Char.chr
(i
land 0xff));;
2 let r8 s pos
= Char.code
(String.get s pos
);;
13 w16 s
(pos
+2) (i
lsr 16)
17 let rb pos1
= Char.code
(String.get s
(pos
+ pos1
)) in
18 (rb 0) lor ((rb 1) lsl 8)
23 i - ((i land 0x8000) lsl 1)
27 let rb pos1
= Char.code
(String.get s
(pos
+ pos1
)) in
28 let l = (rb 0) lor ((rb 1) lsl 8)
29 and u
= (rb 2) lor ((rb 3) lsl 8) in