MCPcopy Create free account
hub / github.com/albertobsd/keyhunt / GetByte

Method GetByte

gmp256k1/Int.cpp:251–257  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

249}
250
251unsigned char Int::GetByte(int n) {
252 unsigned char buffer[32];
253 size_t count, size = this->GetSize();
254 memset(buffer, 0, 32);
255 mpz_export(buffer + 32 - size, &count, 0, 1, 0, 0, num);
256 return buffer[n];
257}
258
259char* Int::GetBase2() {
260 return mpz_get_str(NULL,2,num);

Callers

nothing calls this directly

Calls 1

GetSizeMethod · 0.95

Tested by

no test coverage detected