// 
// Decompiled by Procyon v0.6.0
// 

package io.netty.buffer;

import io.netty.util.internal.PlatformDependent;
import java.nio.ByteBuffer;

final class VarHandleByteBufferAccess
{
    private VarHandleByteBufferAccess() {
    }
    
    static short getShortBE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.shortBeByteBufferView().get(buffer, index);
    }
    
    static void setShortBE(final ByteBuffer buffer, final int index, final int value) {
        PlatformDependent.shortBeByteBufferView().set(buffer, index, (short)value);
    }
    
    static short getShortLE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.shortLeByteBufferView().get(buffer, index);
    }
    
    static void setShortLE(final ByteBuffer buffer, final int index, final int value) {
        PlatformDependent.shortLeByteBufferView().set(buffer, index, (short)value);
    }
    
    static int getIntBE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.intBeByteBufferView().get(buffer, index);
    }
    
    static void setIntBE(final ByteBuffer buffer, final int index, final int value) {
        PlatformDependent.intBeByteBufferView().set(buffer, index, value);
    }
    
    static int getIntLE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.intLeByteBufferView().get(buffer, index);
    }
    
    static void setIntLE(final ByteBuffer buffer, final int index, final int value) {
        PlatformDependent.intLeByteBufferView().set(buffer, index, value);
    }
    
    static long getLongBE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.longBeByteBufferView().get(buffer, index);
    }
    
    static void setLongBE(final ByteBuffer buffer, final int index, final long value) {
        PlatformDependent.longBeByteBufferView().set(buffer, index, value);
    }
    
    static long getLongLE(final ByteBuffer buffer, final int index) {
        return PlatformDependent.longLeByteBufferView().get(buffer, index);
    }
    
    static void setLongLE(final ByteBuffer buffer, final int index, final long value) {
        PlatformDependent.longLeByteBufferView().set(buffer, index, value);
    }
    
    static short getShortBE(final byte[] memory, final int index) {
        return PlatformDependent.shortBeArrayView().get(memory, index);
    }
    
    static void setShortBE(final byte[] memory, final int index, final int value) {
        PlatformDependent.shortBeArrayView().set(memory, index, (short)value);
    }
    
    static short getShortLE(final byte[] memory, final int index) {
        return PlatformDependent.shortLeArrayView().get(memory, index);
    }
    
    static void setShortLE(final byte[] memory, final int index, final int value) {
        PlatformDependent.shortLeArrayView().set(memory, index, (short)value);
    }
    
    static int getIntBE(final byte[] memory, final int index) {
        return PlatformDependent.intBeArrayView().get(memory, index);
    }
    
    static void setIntBE(final byte[] memory, final int index, final int value) {
        PlatformDependent.intBeArrayView().set(memory, index, value);
    }
    
    static int getIntLE(final byte[] memory, final int index) {
        return PlatformDependent.intLeArrayView().get(memory, index);
    }
    
    static void setIntLE(final byte[] memory, final int index, final int value) {
        PlatformDependent.intLeArrayView().set(memory, index, value);
    }
    
    static long getLongBE(final byte[] memory, final int index) {
        return PlatformDependent.longBeArrayView().get(memory, index);
    }
    
    static void setLongBE(final byte[] memory, final int index, final long value) {
        PlatformDependent.longBeArrayView().set(memory, index, value);
    }
    
    static long getLongLE(final byte[] memory, final int index) {
        return PlatformDependent.longLeArrayView().get(memory, index);
    }
    
    static void setLongLE(final byte[] memory, final int index, final long value) {
        PlatformDependent.longLeArrayView().set(memory, index, value);
    }
}
