IElementPtr

public interface IElementPtr<T>

Interface for offsetble pointer objects.

Methods

ofs

public T ofs(int elemOffset)

Create a new pointer from a specified element offset.

When the pointer is not guarded, accessing elements out of range could result in a program crash!

Parameters:
  • elemOffset – low endpoint of the new pointer
Returns:

new pointer with the specified low endpoint