Package org.stellar.sdk.xdr
Class SorobanResources
java.lang.Object
org.stellar.sdk.xdr.SorobanResources
SorobanResources's original definition in the XDR file is:
struct SorobanResources { // The ledger footprint of the transaction. LedgerFootprint footprint; // The maximum number of instructions this transaction can use uint32 instructions; // The maximum number of bytes this transaction can read from ledger uint32 readBytes; // The maximum number of bytes this transaction can write to ledger uint32 writeBytes; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSorobanResources
(LedgerFootprint footprint, Uint32 instructions, Uint32 readBytes, Uint32 writeBytes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static SorobanResources
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static SorobanResources
fromXdrBase64
(String xdr) static SorobanResources
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setFootprint
(LedgerFootprint footprint) void
setInstructions
(Uint32 instructions) void
setReadBytes
(Uint32 readBytes) void
setWriteBytes
(Uint32 writeBytes) toString()
default String
default byte[]
-
Constructor Details
-
SorobanResources
public SorobanResources() -
SorobanResources
public SorobanResources(LedgerFootprint footprint, Uint32 instructions, Uint32 readBytes, Uint32 writeBytes)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getFootprint
-
getInstructions
-
getReadBytes
-
getWriteBytes
-
setFootprint
-
setInstructions
-
setReadBytes
-
setWriteBytes
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-