MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / encode

Function encode

GSM/GSML3CCElements.cpp:208–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

206
207
208static int encode(char c, bool *invalid)
209{
210 //return c == '*' ? 10 : c == '#' ? 11 : c-'0';
211 if (c == '*') return 10;
212 if (c == '#') return 11;
213 if (isdigit(c)) return c - '0';
214 *invalid = true;
215 return 0; // Not sure what to do.
216}
217
218
219void L3BCDDigits::write(L3Frame& dest, size_t &wp) const

Callers 1

writeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected