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
Modifier and TypeClassDescriptionstatic class
static class
ContractCodeEntryExt's original definition in the XDR file is: -
Constructor Summary
ConstructorDescriptionContractCodeEntry
(ContractCodeEntry.ContractCodeEntryExt ext, Hash hash, byte[] code) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static ContractCodeEntry
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static ContractCodeEntry
fromXdrBase64
(String xdr) static ContractCodeEntry
fromXdrByteArray
(byte[] xdr) byte[]
getCode()
getExt()
getHash()
int
hashCode()
void
setCode
(byte[] code) void
void
toString()
default String
default 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
-