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

Breadcrumb

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

function GPBUtil::checkUint32

19 calls to GPBUtil::checkUint32()
Event::setDroppedAttributesCount in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Event.php
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.
ExponentialHistogramDataPoint::setFlags in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/ExponentialHistogramDataPoint.php
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
HistogramDataPoint::setFlags in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Metrics/V1/HistogramDataPoint.php
Flags that apply to this specific data point. See DataPointFlags for the available flags and their meaning.
InstrumentationScope::setDroppedAttributesCount in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Common/V1/InstrumentationScope.php
Generated from protobuf field <code>uint32 dropped_attributes_count = 4;</code>
Link::setDroppedAttributesCount in vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Link.php
dropped_attributes_count is the number of dropped attributes. If the value is 0, then no attributes were dropped.

... See full list

File

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

Class

GPBUtil

Namespace

Google\Protobuf\Internal

Code

public static function checkUint32(&$var) {
    if (is_numeric($var)) {
        if (PHP_INT_SIZE === 8) {
            $var = intval($var);
            $var |= -($var >> 31 & 0x1) & ~0xffffffff;
        }
        else {
            if (bccomp($var, 0x7fffffff) > 0) {
                $var = bcsub($var, "4294967296");
            }
            $var = (int) $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