File tom/ByteSubstring


class tom.ByteSubstring

A ByteSubstring is a substring of a constant ByteString. It tries to maskerade as one (even though it is certainly not an Array), possibly not perfect (yet).

Inherits

State supers
String, C

methods

instance (id)
  with (int, int) (start, len)
    in ByteString string;
Undocumented.

instance tom.ByteSubstring

variables

ByteString string;
The string we're begin part of.
int start;
The start of us in our string.
public int length;
The length of us, which is never < 0.

methods

id
  init (int, int) (s, l)
    in ByteString str;
Designated initializer.

class (State)
  mutableCopyClass;
Return the MutableByteString class.

byte
  at int index;
Retrieve the byte at the index.

ByteNumber
  at int index;
Return the ByteNumber at the index.

Enumerator
  enumerator;
Return a restricted enumerator on the underlying string.

id
  initWithEnumerator Enumerator e;
Undocumented.

(pointer, int)
  pointerToElements (int, int) (begin, len);
Another low level access method.

ByteSubstring
  substring (int, int) (begin, len);
Return a new substring on our string---we do not cascade substrings.

MutableByteString
  mutableSubstring (int, int) (begin, len);
Undocumented.

(pointer, int)
  byteStringContents;
Low level access method.

boolean
  equal String other;
Undocumented.

int
  hash;
Undocumented.

int
  hashRange (int, int) (begin, len);
Undocumented.

boolean
  equalByteString ByteString other;
Undocumented.

boolean
  equalCharString CharString other;
Undocumented.

boolean
  equalUniqueString UniqueString other;
Undocumented.

UniqueByteString
  uniqueString;
Undocumented.

OutputStream
  write OutputStream s;
Undocumented.


Generated by tm 1.01.