package posix-socket-unix
Install
Dune Dependency
Authors
Maintainers
Sources
md5=0c6a8cd7b7f5e163160abb8a62f75a5b
sha512=735c6afd48e36af0a032f51217e7558629a198fd39a0484883831bdbff511b331033696b8ad73c6896fa9df0a0b1fd2f27336c2b0b7447dd10902e6bc64e4886
doc/posix-socket-unix.constants/Posix_socket_unix_constants/Def/argument-1-S/Ptrdiff/index.html
Module S.Ptrdiff
module Infix : Signed.Infix with type t := t
include Unsigned.S with type t := t with module Infix := Infix
Division. Raise Division_by_zero
if the second argument is zero.
Integer remainder. Raise Division_by_zero
if the second argument is zero.
val max_int : t
The greatest representable integer.
shift_left
x
y
shifts x
to the left by y
bits.
shift_right
x
y
shifts x
to the right by y
bits.
val of_int : int -> t
Convert the given int value to an unsigned integer.
val to_int : t -> int
Convert the given unsigned integer value to an int.
val of_string : string -> t
Convert the given string to an unsigned integer. Raise Failure
if the given string is not a valid representation of an unsigned integer.
val to_string : t -> string
Return the string representation of its argument.
val to_hexstring : t -> string
Return the hexadecimal string representation of its argument.
val zero : t
The integer 0.
val one : t
The integer 1.
The comparison function for unsigned integers, with the same specification as Stdlib.compare
.
Tests for equality, with the same specification as Stdlib.(=)
.
val of_string_opt : string -> t option
Convert the given string to an unsigned integer. Returns None
if the given string is not a valid representation of an unsigned integer.
val pp : Format.formatter -> t -> unit
Output the result of to_string
on a formatter.
val pp_hex : Format.formatter -> t -> unit
Output the result of to_hexstring
on a formatter.
val minus_one : t
The value -1
val min_int : t
The smallest representable integer.
shift_right_logical
x
y
shifts x
to the right by y
bits. See Int32.shift_right_logical
.
val of_nativeint : nativeint -> t
Convert the given nativeint value to a signed integer.
val to_nativeint : t -> nativeint
Convert the given signed integer to a nativeint value.
val of_int64 : int64 -> t
Convert the given int64 value to a signed integer.
val to_int64 : t -> int64
Convert the given signed integer to an int64 value.