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

Function validPin

common/transferprotocol.cpp:199–202  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197 }
198
199 bool validPin(const std::string& pin)
200 {
201 return pin.size() == 4 && std::all_of(pin.begin(), pin.end(), [](unsigned char c) { return std::isdigit(c) != 0; });
202 }
203
204 std::optional<uint64_t> zipStreamSize(const std::vector<SendFile>& files, const std::vector<std::string>& dirs)
205 {

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