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
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSorobanResources(LedgerFootprint footprint, Uint32 instructions, Uint32 readBytes, Uint32 writeBytes) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static SorobanResourcesdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic SorobanResourcesfromXdrBase64(String xdr) static SorobanResourcesfromXdrByteArray(byte[] xdr) inthashCode()voidsetFootprint(LedgerFootprint footprint) voidsetInstructions(Uint32 instructions) voidsetReadBytes(Uint32 readBytes) voidsetWriteBytes(Uint32 writeBytes) toString()default Stringdefault 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
-