net.corda.core.serialization

## Class KryoKt

- net.corda.core.serialization.KryoKt

-     public class KryoKt

- - ### Method Summary

    All Methods Static Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `static WireTransaction` | `SerializedBytesWireTransaction(SerializedBytes<net.corda.core.transactions.WireTransaction> $receiver, com.esotericsoftware.kryo.Kryo kryo)`
    `static com.esotericsoftware.kryo.Kryo` | `createInternalKryo(com.esotericsoftware.kryo.Kryo k)`
    `static com.esotericsoftware.kryo.Kryo` | `createKryo(com.esotericsoftware.kryo.Kryo k)`
    `static <T> T` | `deserialize(byte[] $receiver, com.esotericsoftware.kryo.Kryo kryo)`
    `static <T> T` | `deserialize(OpaqueBytes $receiver, com.esotericsoftware.kryo.Kryo kryo)`
    `static <T> T` | `deserialize(SerializedBytes<T> $receiver, com.esotericsoftware.kryo.Kryo kryo)`
    `static com.esotericsoftware.kryo.Kryo` | `extendKryoHash(com.esotericsoftware.kryo.Kryo kryo)`
    `static java.lang.String` | `getATTACHMENT_STORAGE()`
    `static AttachmentStorage` | `getAttachmentStorage(com.esotericsoftware.kryo.Kryo $receiver)`
    `static byte[]` | `readBytesWithLength(com.esotericsoftware.kryo.io.Input $receiver)`
    `static <T> com.esotericsoftware.kryo.Registration` | `register(com.esotericsoftware.kryo.Kryo $receiver, kotlin.reflect.KClass<T> type, kotlin.jvm.functions.Function2<? super com.esotericsoftware.kryo.Kryo,? super com.esotericsoftware.kryo.io.Input,? extends T> read, kotlin.jvm.functions.Function3<? super com.esotericsoftware.kryo.Kryo,? super com.esotericsoftware.kryo.io.Output,? super T,kotlin.Unit> write)`
    `static <T> SerializedBytes<T>` | `serialize(T $receiver, com.esotericsoftware.kryo.Kryo kryo, boolean internalOnly)` Can be called on any object to convert it to a byte array (wrapped by `class SerializedBytes`), regardless of whether the type is marked as serializable or was designed for it (so be careful!).
    `static void` | `setAttachmentStorage(com.esotericsoftware.kryo.Kryo $receiver, AttachmentStorage value)`
    `static com.esotericsoftware.kryo.Kryo` | `threadLocalP2PKryo()`
    `static com.esotericsoftware.kryo.Kryo` | `threadLocalStorageKryo()`
    `static <T> T` | `useClassLoader(com.esotericsoftware.kryo.Kryo $receiver, java.lang.ClassLoader cl, kotlin.jvm.functions.Function0<? extends T> body)`
    `static void` | `writeBytesWithLength(com.esotericsoftware.kryo.io.Output $receiver, byte[] byteArray)`

- - ### Method Detail

    - #### threadLocalP2PKryo

          public static com.esotericsoftware.kryo.Kryo threadLocalP2PKryo()

    - #### threadLocalStorageKryo

          public static com.esotericsoftware.kryo.Kryo threadLocalStorageKryo()

    - #### deserialize

          public static <T> T deserialize(byte[] $receiver,
                                          com.esotericsoftware.kryo.Kryo kryo)

    - #### deserialize

          public static <T> T deserialize(OpaqueBytes $receiver,
                                          com.esotericsoftware.kryo.Kryo kryo)

    - #### SerializedBytesWireTransaction

          public static WireTransaction SerializedBytesWireTransaction(SerializedBytes<net.corda.core.transactions.WireTransaction> $receiver,
                                                                       com.esotericsoftware.kryo.Kryo kryo)

    - #### deserialize

          public static <T> T deserialize(SerializedBytes<T> $receiver,
                                          com.esotericsoftware.kryo.Kryo kryo)

    - #### serialize

          public static <T> SerializedBytes<T> serialize(T $receiver,
                                                         com.esotericsoftware.kryo.Kryo kryo,
                                                         boolean internalOnly)

      Can be called on any object to convert it to a byte array (wrapped by `class SerializedBytes`), regardless of whether the type is marked as serializable or was designed for it (so be careful!).

      See Also:
        `class SerializedBytes`

    - #### useClassLoader

          public static <T> T useClassLoader(com.esotericsoftware.kryo.Kryo $receiver,
                                             java.lang.ClassLoader cl,
                                             kotlin.jvm.functions.Function0<? extends T> body)

    - #### writeBytesWithLength

          public static void writeBytesWithLength(com.esotericsoftware.kryo.io.Output $receiver,
                                                  byte[] byteArray)

    - #### readBytesWithLength

          public static byte[] readBytesWithLength(com.esotericsoftware.kryo.io.Input $receiver)

    - #### createInternalKryo

          public static com.esotericsoftware.kryo.Kryo createInternalKryo(com.esotericsoftware.kryo.Kryo k)

    - #### createKryo

          public static com.esotericsoftware.kryo.Kryo createKryo(com.esotericsoftware.kryo.Kryo k)

    - #### register

          public static <T> com.esotericsoftware.kryo.Registration register(com.esotericsoftware.kryo.Kryo $receiver,
                                                                            kotlin.reflect.KClass<T> type,
                                                                            kotlin.jvm.functions.Function2<? super com.esotericsoftware.kryo.Kryo,? super com.esotericsoftware.kryo.io.Input,? extends T> read,
                                                                            kotlin.jvm.functions.Function3<? super com.esotericsoftware.kryo.Kryo,? super com.esotericsoftware.kryo.io.Output,? super T,kotlin.Unit> write)

    - #### getATTACHMENT_STORAGE

          public static java.lang.String getATTACHMENT_STORAGE()

    - #### getAttachmentStorage

          public static AttachmentStorage getAttachmentStorage(com.esotericsoftware.kryo.Kryo $receiver)

    - #### setAttachmentStorage

          public static void setAttachmentStorage(com.esotericsoftware.kryo.Kryo $receiver,
                                                  AttachmentStorage value)

    - #### extendKryoHash

          public static com.esotericsoftware.kryo.Kryo extendKryoHash(com.esotericsoftware.kryo.Kryo kryo)