git_oid_fromraw

Copy an already raw oid into a git_oid structure.

  1. int git_oid_fromraw(.git_oid* out_, const(ubyte)* raw, .git_oid_t type)
  2. int git_oid_fromraw(.git_oid* out_, const(ubyte)* raw)
    version(!GIT_EXPERIMENTAL_SHA256)
    extern (C) nothrow @nogc public
    int
    git_oid_fromraw
    (,
    const(ubyte)* raw
    )

Parameters

out_ .git_oid*

oid structure the result is written into.

raw const(ubyte)*

the raw input bytes to be copied.

Return Value

Type: int

0 on success or error code

Meta