Package w.unsafe

Interface Unsafe


public interface Unsafe
Author:
whilein
  • Method Details

    • getUnsafe

      @NotNull static @NotNull Unsafe getUnsafe()
    • isUnsafeAvailable

      static boolean isUnsafeAvailable()
    • isAvailable

      boolean isAvailable()
    • putField

      void putField(@NotNull @NotNull Field field, @NotNull @NotNull Object object, @Nullable @Nullable Object value)
    • putStaticField

      void putStaticField(@NotNull @NotNull Field field, @Nullable @Nullable Object value)
    • trustedLookupIn

      @NotNull MethodHandles.Lookup trustedLookupIn(@NotNull @NotNull Class<?> type)
    • trustedLookup

      @NotNull MethodHandles.Lookup trustedLookup()
    • defineClass

      @NotNull @NotNull Class<?> defineClass(@NotNull @NotNull String name, byte @NotNull [] bytecode, int offset, int length, @Nullable @Nullable ClassLoader classLoader, @Nullable @Nullable ProtectionDomain protectionDomain)
    • allocateUninitializedArray

      @NotNull @NotNull Object allocateUninitializedArray(@NotNull @NotNull Class<?> componentType, int length)
    • allocateInstance

      @NotNull @NotNull Object allocateInstance(@NotNull @NotNull Class<?> type)