Package org.stellar.sdk.xdr
Class HostFunction
java.lang.Object
org.stellar.sdk.xdr.HostFunction
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic HostFunctiondecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) static voidencode(XdrDataOutputStream stream, HostFunction encodedHostFunction) booleanstatic HostFunctionfromXdrBase64(String xdr) static HostFunctionfromXdrByteArray(byte[] xdr) byte[]getWasm()inthashCode()voidvoidsetDiscriminant(HostFunctionType value) voidvoidsetWasm(byte[] value) byte[]
-
Constructor Details
-
HostFunction
public HostFunction()
-
-
Method Details
-
getDiscriminant
-
setDiscriminant
-
getInvokeContract
-
setInvokeContract
-
getCreateContract
-
setCreateContract
-
getWasm
public byte[] getWasm() -
setWasm
public void setWasm(byte[] value) -
encode
public static void encode(XdrDataOutputStream stream, HostFunction encodedHostFunction) throws IOException - Throws:
IOException
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
hashCode
public int hashCode() -
equals
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-