Stellar PHP SDK API Documentation

ScValHostOrder
in package

Soroban host ordering for SCVal keys and values.

Tags
see
https://github.com/stellar/rs-soroban-env/blob/f54ab964/soroban-env-host/src/host/comparison.rs#L301-L380

Table of Contents

Methods

compare()  : int
Compares by SCVal type, then content in host order; returns negative, zero or positive.

Methods

compare()

Compares by SCVal type, then content in host order; returns negative, zero or positive.

public static compare(XdrSCVal $a, XdrSCVal $b) : int

Signed integers compare numerically, byte strings lexicographically and collections recursively.

Parameters
$a : XdrSCVal
$b : XdrSCVal
Tags
throws
InvalidArgumentException

for absent vectors/maps or unsupported types

Return values
int
On this page

Search results