mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IJPL-797 intellij.platform.util.zip: dump API
GitOrigin-RevId: 1e6f1df581162ed5ef3adda5cb0d192d2663a8da
This commit is contained in:
committed by
intellij-monorepo-bot
parent
07a0e5218e
commit
bbe133d5df
@@ -1,6 +1,7 @@
|
||||
// Copyright 2000-2021 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.util.lang;
|
||||
|
||||
import org.jetbrains.annotations.ApiStatus.Internal;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.lang.invoke.MethodHandle;
|
||||
@@ -10,6 +11,7 @@ import java.nio.ByteBuffer;
|
||||
|
||||
// we need to unmap buffer immediately without waiting until GC does this job; otherwise further modifications of the created file
|
||||
// will fail with AccessDeniedException
|
||||
@Internal
|
||||
public final class ByteBufferCleaner {
|
||||
private static volatile MethodHandle cleaner;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.util.lang;
|
||||
|
||||
import java.io.IOException;
|
||||
@@ -7,7 +7,7 @@ import java.lang.invoke.MethodHandles;
|
||||
import java.lang.invoke.VarHandle;
|
||||
import java.nio.ByteOrder;
|
||||
|
||||
public class InputStreamAccess implements Access<InputStream> {
|
||||
class InputStreamAccess implements Access<InputStream> {
|
||||
private static final VarHandle LONG_HANDLE = MethodHandles.byteArrayViewVarHandle(long[].class, ByteOrder.LITTLE_ENDIAN);
|
||||
private static final VarHandle INT_HANDLE = MethodHandles.byteArrayViewVarHandle(int[].class, ByteOrder.LITTLE_ENDIAN);
|
||||
|
||||
@@ -16,7 +16,7 @@ public class InputStreamAccess implements Access<InputStream> {
|
||||
private final int totalStreamLength;
|
||||
private final int totalBlocks;
|
||||
|
||||
public InputStreamAccess(int streamLength) {
|
||||
InputStreamAccess(int streamLength) {
|
||||
currentBlock = -1;
|
||||
buffer = new byte[Xxh3Impl.getBlockLength()];
|
||||
totalStreamLength = streamLength;
|
||||
|
||||
Reference in New Issue
Block a user