MCPcopy Create free account
hub / github.com/BernardoGiordano/Checkpoint / validPin

Function validPin

common/transferprotocol.cpp:224–227  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 }
223
224 bool validPin(const std::string& pin)
225 {
226 return pin.size() == 4 && std::all_of(pin.begin(), pin.end(), [](unsigned char c) { return std::isdigit(c) != 0; });
227 }
228
229 std::optional<uint64_t> zipStreamSize(const std::vector<SendFile>& files, const std::vector<std::string>& dirs)
230 {

Callers 4

validPinMethod · 0.50
startTransferSendMethod · 0.50
validPinMethod · 0.50
startTransferSendMethod · 0.50

Calls 3

sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected