Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. GPBUtil.php

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.

... See full list

File

vendor/google/protobuf/src/Google/Protobuf/Internal/GPBUtil.php, line 89

Class

GPBUtil

Namespace

Google\Protobuf\Internal

Code

public static function checkInt32(&$var) {
    if (is_numeric($var)) {
        $var = intval($var);
    }
    else {
        throw new \Exception("Expect integer.");
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal