Package org.stellar.sdk.xdr
Class ContractCodeCostInputs
java.lang.Object
org.stellar.sdk.xdr.ContractCodeCostInputs
- All Implemented Interfaces:
XdrElement
ContractCodeCostInputs's original definition in the XDR file is:
struct ContractCodeCostInputs {
ExtensionPoint ext;
uint32 nInstructions;
uint32 nFunctions;
uint32 nGlobals;
uint32 nTableEntries;
uint32 nTypes;
uint32 nDataSegments;
uint32 nElemSegments;
uint32 nImports;
uint32 nExports;
uint32 nDataSegmentBytes;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionContractCodeCostInputs(ExtensionPoint ext, Uint32 nInstructions, Uint32 nFunctions, Uint32 nGlobals, Uint32 nTableEntries, Uint32 nTypes, Uint32 nDataSegments, Uint32 nElemSegments, Uint32 nImports, Uint32 nExports, Uint32 nDataSegmentBytes) Creates a newContractCodeCostInputsinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static ContractCodeCostInputsdecode(XdrDataInputStream stream) static ContractCodeCostInputsdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic ContractCodeCostInputsstatic ContractCodeCostInputsfromXdrBase64(String xdr) static ContractCodeCostInputsfromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of thenDataSegmentBytesfield.Value of thenDataSegmentsfield.Value of thenElemSegmentsfield.Value of thenExportsfield.Value of thenFunctionsfield.Value of thenGlobalsfield.Value of thenImportsfield.Value of thenInstructionsfield.Value of thenTableEntriesfield.Value of thenTypesfield.inthashCode()voidsetExt(ExtensionPoint ext) Value of theextfield.voidsetNDataSegmentBytes(Uint32 nDataSegmentBytes) Value of thenDataSegmentBytesfield.voidsetNDataSegments(Uint32 nDataSegments) Value of thenDataSegmentsfield.voidsetNElemSegments(Uint32 nElemSegments) Value of thenElemSegmentsfield.voidsetNExports(Uint32 nExports) Value of thenExportsfield.voidsetNFunctions(Uint32 nFunctions) Value of thenFunctionsfield.voidsetNGlobals(Uint32 nGlobals) Value of thenGlobalsfield.voidsetNImports(Uint32 nImports) Value of thenImportsfield.voidsetNInstructions(Uint32 nInstructions) Value of thenInstructionsfield.voidsetNTableEntries(Uint32 nTableEntries) Value of thenTableEntriesfield.voidValue of thenTypesfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
ContractCodeCostInputs
public ContractCodeCostInputs() -
ContractCodeCostInputs
public ContractCodeCostInputs(ExtensionPoint ext, Uint32 nInstructions, Uint32 nFunctions, Uint32 nGlobals, Uint32 nTableEntries, Uint32 nTypes, Uint32 nDataSegments, Uint32 nElemSegments, Uint32 nImports, Uint32 nExports, Uint32 nDataSegmentBytes) Creates a newContractCodeCostInputsinstance.- Parameters:
ext- theextfield valuenInstructions- thenInstructionsfield valuenFunctions- thenFunctionsfield valuenGlobals- thenGlobalsfield valuenTableEntries- thenTableEntriesfield valuenTypes- thenTypesfield valuenDataSegments- thenDataSegmentsfield valuenElemSegments- thenElemSegmentsfield valuenImports- thenImportsfield valuenExports- thenExportsfield valuenDataSegmentBytes- thenDataSegmentBytesfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
public static ContractCodeCostInputs decode(XdrDataInputStream stream, int maxDepth) throws IOException - Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getNInstructions
Value of thenInstructionsfield.- Returns:
- the
nInstructionsfield value
-
getNFunctions
Value of thenFunctionsfield.- Returns:
- the
nFunctionsfield value
-
getNGlobals
Value of thenGlobalsfield.- Returns:
- the
nGlobalsfield value
-
getNTableEntries
Value of thenTableEntriesfield.- Returns:
- the
nTableEntriesfield value
-
getNTypes
Value of thenTypesfield.- Returns:
- the
nTypesfield value
-
getNDataSegments
Value of thenDataSegmentsfield.- Returns:
- the
nDataSegmentsfield value
-
getNElemSegments
Value of thenElemSegmentsfield.- Returns:
- the
nElemSegmentsfield value
-
getNImports
Value of thenImportsfield.- Returns:
- the
nImportsfield value
-
getNExports
Value of thenExportsfield.- Returns:
- the
nExportsfield value
-
getNDataSegmentBytes
Value of thenDataSegmentBytesfield.- Returns:
- the
nDataSegmentBytesfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setNInstructions
Value of thenInstructionsfield.- Parameters:
nInstructions- thenInstructionsfield value
-
setNFunctions
Value of thenFunctionsfield.- Parameters:
nFunctions- thenFunctionsfield value
-
setNGlobals
Value of thenGlobalsfield.- Parameters:
nGlobals- thenGlobalsfield value
-
setNTableEntries
Value of thenTableEntriesfield.- Parameters:
nTableEntries- thenTableEntriesfield value
-
setNTypes
Value of thenTypesfield.- Parameters:
nTypes- thenTypesfield value
-
setNDataSegments
Value of thenDataSegmentsfield.- Parameters:
nDataSegments- thenDataSegmentsfield value
-
setNElemSegments
Value of thenElemSegmentsfield.- Parameters:
nElemSegments- thenElemSegmentsfield value
-
setNImports
Value of thenImportsfield.- Parameters:
nImports- thenImportsfield value
-
setNExports
Value of thenExportsfield.- Parameters:
nExports- thenExportsfield value
-
setNDataSegmentBytes
Value of thenDataSegmentBytesfield.- Parameters:
nDataSegmentBytes- thenDataSegmentBytesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-