Package org.stellar.sdk.xdr
Class SorobanResources
java.lang.Object
org.stellar.sdk.xdr.SorobanResources
- All Implemented Interfaces:
XdrElement
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 disk backed entries
uint32 diskReadBytes;
// The maximum number of bytes this transaction can write to ledger
uint32 writeBytes;
};
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSorobanResources(LedgerFootprint footprint, Uint32 instructions, Uint32 diskReadBytes, Uint32 writeBytes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanResourcesdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SorobanResourcesfromXdrBase64(String xdr) static SorobanResourcesfromXdrByteArray(byte[] xdr) inthashCode()voidsetDiskReadBytes(Uint32 diskReadBytes) voidsetFootprint(LedgerFootprint footprint) voidsetInstructions(Uint32 instructions) voidsetWriteBytes(Uint32 writeBytes) toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
SorobanResources
public SorobanResources() -
SorobanResources
public SorobanResources(LedgerFootprint footprint, Uint32 instructions, Uint32 diskReadBytes, Uint32 writeBytes)
-
-
Method Details
-
encode
- Specified by:
encodein interfaceXdrElement- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getFootprint
-
getInstructions
-
getDiskReadBytes
-
getWriteBytes
-
setFootprint
-
setInstructions
-
setDiskReadBytes
-
setWriteBytes
-
equals
-
hashCode
public int hashCode() -
toString
-