All Downloads are FREE. Search and download functionalities are using the official Maven repository.

Alachisoft.NCache.Common.Util.LargBuffer Maven / Gradle / Ivy

package Alachisoft.NCache.Common.Util;

public class LargBuffer {
    //C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: private byte[] _buffer;
    private byte[] _buffer;
    private BufferStatus _status = BufferStatus.Free;
    private int _id;

    //C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: internal LargBuffer(byte[] buffer,int id)
    public LargBuffer(byte[] buffer, int id) {
        _buffer = buffer;
        _id = id;
    }

    //C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: internal LargBuffer(byte[] buffer,int id, BufferStatus status)
    public LargBuffer(byte[] buffer, int id, BufferStatus status) {
        this(buffer, id);
        _status = status;
    }

    //C# TO JAVA CONVERTER WARNING: Unsigned integer types have no direct equivalent in Java:
//ORIGINAL LINE: public byte[] getBuffer()
    public final byte[] getBuffer() {
        return _buffer;
    }

    public final BufferStatus getStatus() {
        return _status;
    }

    public final void setStatus(BufferStatus value) {
        _status = value;
    }

    public final int getID() {
        return _id;
    }

    public final boolean getIsFree() {
        return _status == BufferStatus.Free;
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy