Package org.stellar.sdk.xdr
Class ContractCodeEntry
java.lang.Object
org.stellar.sdk.xdr.ContractCodeEntry
ContractCodeEntry's original definition in the XDR file is:
struct ContractCodeEntry {
union switch (int v)
{
case 0:
void;
case 1:
struct
{
ExtensionPoint ext;
ContractCodeCostInputs costInputs;
} v1;
} ext;
Hash hash;
opaque code<>;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classContractCodeEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorsConstructorDescriptionContractCodeEntry(ContractCodeEntry.ContractCodeEntryExt ext, Hash hash, byte[] code) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ContractCodeEntrydecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic ContractCodeEntryfromXdrBase64(String xdr) static ContractCodeEntryfromXdrByteArray(byte[] xdr) byte[]getCode()getExt()getHash()inthashCode()voidsetCode(byte[] code) voidvoidtoString()default Stringdefault byte[]
-
Constructor Details
-
ContractCodeEntry
public ContractCodeEntry() -
ContractCodeEntry
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getExt
-
getHash
-
getCode
public byte[] getCode() -
setExt
-
setHash
-
setCode
public void setCode(byte[] code) -
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-