-
interface
Defines the read-only API for relative positional access to a resource.
interface
Defines the read-only API for offset access to a resource.
interface
Defines the writable API for relative positional access to a resource
interface
Defines the writable API for offset access to a resource.
int
Resource.compareTo(long thisOffsetBytes,
long thisLengthBytes,
Resource that,
long thatOffsetBytes,
long thatLengthBytes)
Compares the bytes of this Resource to that Resource.
boolean
Resource.equalTo(long thisOffsetBytes,
Resource that,
long thatOffsetBytes,
long lengthBytes)
Returns true if the given object is an instance of this class and has equal contents to
this object in the given range of bytes.
default boolean
Returns true if the given object is an instance of this class and has equal contents to
this object.
long
Gets the relative base offset of this with respect to that, defined as: this - that.
boolean
Returns true if the underlying resource is the same underlying resource as that.
long
Finds the first byte mismatch with that.
long
Resource.mismatch(Resource src,
long srcFromOffset,
long srcToOffset,
Resource dst,
long dstFromOffset,
long dstToOffset)
Finds the first byte mismatch based on the given offsets
long
Returns a positive number if this overlaps that and this base address is ≤ that
base address.