public final class Parameter extends Object
ProtocolVersion.V5
the size is limited to 1kb.
From protocol version ProtocolVersion.V5
and onwards the size is limited to be 64kb.Modifier and Type | Field and Description |
---|---|
static Parameter |
EMPTY |
static int |
MAX_SIZE |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static Parameter |
from(byte[] parameter)
This function takes a byte array and returns a Parameter object.
|
static Parameter |
from(com.concordium.grpc.v2.Parameter parameter) |
byte[] |
getBytes()
Get the serialized parameter, namely the length
of the parameter (encoded via 2 bytes, big endian) and concatenated with the
actual parameter bytes.
|
byte[] |
getBytesForContractInvocation()
Get the parameter bytes for contract invocation i.e.
|
int |
hashCode() |
String |
toString() |
public static final int MAX_SIZE
public static final Parameter EMPTY
public static Parameter from(byte[] parameter)
public static Parameter from(com.concordium.grpc.v2.Parameter parameter)
public byte[] getBytes()
public byte[] getBytesForContractInvocation()
getBytes()
as this does not prepend the
returned byte array with the length of the parameters.
This function should be only be used for ClientV2.invokeInstance(InvokeInstanceRequest)
calls.Copyright © 2025. All rights reserved.