Package org.polkadot.types.codec
Class CodecUtils
- java.lang.Object
-
- org.polkadot.types.codec.CodecUtils
-
public class CodecUtils extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description CodecUtils()
-
Method Summary
Modifier and Type Method Description static java.util.List<java.lang.Object>arrayLikeToList(java.lang.Object value)static booleancompareArray(java.util.List list, java.lang.Object other)static booleancompareMap(java.util.Map map1, java.lang.Object obj)static java.util.List<Codec>decodeU8a(byte[] u8a, java.util.List<Types.ConstructorCodec> types)static voiddecodeU8a(byte[] u8a, java.util.List<Types.ConstructorCodec> types, java.util.List<Codec> results)static java.util.List<Codec>decodeU8a(byte[] u8a, Types.ConstructorDef types)Given an u8a, and an array of Type constructors, decode the u8a against the types, and return an array of decoded values.
-
-
-
Method Detail
-
decodeU8a
public static java.util.List<Codec> decodeU8a(byte[] u8a, Types.ConstructorDef types)
Given an u8a, and an array of Type constructors, decode the u8a against the types, and return an array of decoded values.- Parameters:
u8a- - The u8a to decode.types- - The array of Constructor to decode the U8a against.
-
decodeU8a
public static void decodeU8a(byte[] u8a, java.util.List<Types.ConstructorCodec> types, java.util.List<Codec> results)
-
decodeU8a
public static java.util.List<Codec> decodeU8a(byte[] u8a, java.util.List<Types.ConstructorCodec> types)
-
arrayLikeToList
public static java.util.List<java.lang.Object> arrayLikeToList(java.lang.Object value)
-
compareMap
public static boolean compareMap(java.util.Map map1, java.lang.Object obj)
-
compareArray
public static boolean compareArray(java.util.List list, java.lang.Object other)
-
-