Package org.starcoin.types
Class TypeTag
- java.lang.Object
-
- org.starcoin.types.TypeTag
-
- Direct Known Subclasses:
TypeTag.Address,TypeTag.Bool,TypeTag.Signer,TypeTag.Struct,TypeTag.U128,TypeTag.U64,TypeTag.U8,TypeTag.Vector
public abstract class TypeTag extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTypeTag.Addressstatic classTypeTag.Boolstatic classTypeTag.Signerstatic classTypeTag.Structstatic classTypeTag.U128static classTypeTag.U64static classTypeTag.U8static classTypeTag.Vector
-
Constructor Summary
Constructors Constructor Description TypeTag()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description static TypeTagbcsDeserialize(byte[] input)byte[]bcsSerialize()static TypeTagdeserialize(Deserializer deserializer)abstract voidserialize(Serializer serializer)
-
-
-
Method Detail
-
deserialize
public static TypeTag deserialize(Deserializer deserializer) throws DeserializationError
- Throws:
DeserializationError
-
bcsDeserialize
public static TypeTag bcsDeserialize(byte[] input) throws DeserializationError
- Throws:
DeserializationError
-
serialize
public abstract void serialize(Serializer serializer) throws SerializationError
- Throws:
SerializationError
-
bcsSerialize
public byte[] bcsSerialize() throws SerializationError- Throws:
SerializationError
-
-