package git-unix
Virtual package to install and configure ocaml-git's Unix backend
Install
Dune Dependency
Authors
Maintainers
Sources
git-3.18.0.tbz
sha256=925795627e6daae0b4bd16aa506879df11cb201e65fefe38e81378f18d517d4b
sha512=8e407d49808ec26445b0c706f7b010b35050d274b534e265487cb82bcac1f29cd5c41365851d42f84794ddbceb57b90143768a23154117e902b45419d156c410
doc/git-unix/Git_unix/Sync/argument-1-Store/Value/Blob/index.html
Module Value.Blob
type hash = hash
type nonrec t = Git.Blob.t
digest t
associates a hash
to any value of t
. It is guaranteed that if x = y
or compare x y = 0
, then digest x = digest y
.
val hash : t -> int
hash blob
associates a non-negative integer to any value of t
. It is guaranteed that if x = y
or compare x y = 0
, then hash x = hash y
.
Sets and Maps.
val length : t -> int64
of_cstruct cs
is the blob from the given Cstruct.t
cs
. This function does not take the ownership on cs
.
Note. If the user set the given cs
, it updates the blob too. This function does not copy the given Cstruct.t
.
let cs = Cstruct.of_string "Hello" in
let blob = Blob.of_cstruct cs in
Blob.digest blob ;;
- : hash = 5ab2f8a4323abafb10abb68657d9d39f1a775057
Cstruct.set_char cs 0 'V' ;;
- : unit = ()
Blob.digest blob ;;
- : hash = 4081c40614b490bea69ea2ed8fdfdb86f04b5579
val of_string : string -> t
of_string str
is the blob from the given string
str
.
Note. Despite of_cstruct
, of_string
does a copy of the given string
.
val to_string : t -> string
to_string blob
is the string
from the given blob.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
On This Page