# Uses of Interface
org.apache.datasketches.memory.Resource

## Uses of Resource in org.apache.datasketches.memory

Subinterfaces of Resource in org.apache.datasketches.memory
Modifier and Type
Interface
Description
`interface`
`Buffer`
Defines the read-only API for relative positional access to a resource.
`interface`
`Memory`
Defines the read-only API for offset access to a resource.
`interface`
`WritableBuffer`
Defines the writable API for relative positional access to a resource
`interface`
`WritableMemory`
Defines the writable API for offset access to a resource.
Methods in org.apache.datasketches.memory with parameters of type Resource
Modifier and Type
Method
Description
`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`
Resource.`equalTo(Resource that)`
Returns true if the given object is an instance of this class and has equal contents to this object.
`long`
Resource.`getRelativeOffset(Resource that)`
Gets the relative base offset of this resource with respect to that resource, defined as: this - that.
`boolean`
Resource.`isSameResource(Resource that)`
Returns true if the underlying resource is the same resource as that.
`long`
Resource.`mismatch(Resource that)`
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`
Resource.`nativeOverlap(Resource that)`
Returns a positive number if this overlaps that and this base address is ≤ that base address.