function GPBUtil::checkInt32
25 calls to GPBUtil::checkInt32()
- Annotation::setBegin in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GeneratedCodeInfo/ Annotation.php - Identifies the starting offset in bytes in the generated code that relates to the identified object.
- Annotation::setEnd in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GeneratedCodeInfo/ Annotation.php - Identifies the ending offset in bytes in the generated code that relates to the identified object. The end offset should be one past the last relevant byte (so the length of the text = end - begin).
- Buckets::setOffset in vendor/
open-telemetry/ gen-otlp-protobuf/ Opentelemetry/ Proto/ Metrics/ V1/ ExponentialHistogramDataPoint/ Buckets.php - Offset is the bucket index of the first entry in the bucket_counts array.
- Duration::setNanos in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Duration.php - Signed fractions of a second at nanosecond resolution of the span of time. Durations less than one second are represented with a 0 `seconds` field and a positive or negative `nanos` field. For durations of one second or more, a non-zero value for theā¦
- EnumReservedRange::setEnd in vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ EnumDescriptorProto/ EnumReservedRange.php - Inclusive.
File
-
vendor/
google/ protobuf/ src/ Google/ Protobuf/ Internal/ GPBUtil.php, line 89
Class
Namespace
Google\Protobuf\InternalCode
public static function checkInt32(&$var) {
if (is_numeric($var)) {
$var = intval($var);
}
else {
throw new \Exception("Expect integer.");
}
}