| 54 | |
| 55 | template <typename T> |
| 56 | static SINT64 get_parameter(const T** ptr) |
| 57 | { |
| 58 | /************************************** |
| 59 | * |
| 60 | * g e t _ p a r a m e t e r |
| 61 | * |
| 62 | ************************************** |
| 63 | * |
| 64 | * Functional description |
| 65 | * Get a parameter (length is encoded), convert to internal form, |
| 66 | * and return. |
| 67 | * |
| 68 | **************************************/ |
| 69 | SSHORT l = *(*ptr)++; |
| 70 | l += (*(*ptr)++) << 8; |
| 71 | const SINT64 parameter = isc_portable_integer(reinterpret_cast<const ISC_UCHAR*>(*ptr), l); |
| 72 | *ptr += l; |
| 73 | |
| 74 | return parameter; |
| 75 | } |
| 76 | |
| 77 | |
| 78 | #ifndef HAVE_TIMES |
no outgoing calls
no test coverage detected