com.metsci.glimpse.util.primitives
Interface Bytes

All Known Subinterfaces:
BytesModifiable
All Known Implementing Classes:
BytesArray

public interface Bytes

Strings are encoded and decoded using the UTF-8 charset (multi-byte charsets just aren't worth the increased complication in indexing).

Author:
hogye

Field Summary
static java.nio.charset.Charset utf8
           
 
Method Summary
 byte[] copyOf()
           
 byte[] copyOf(int i, int c)
           
 void copyTo(int i, byte[] dest, int iDest, int c)
           
 byte first()
           
 boolean isEmpty()
           
 byte last()
           
 int n()
          Length of the sequence
 java.lang.String string()
           
 java.lang.String string(int i, int c)
          Strings are encoded and decoded using the UTF-8 charset (multi-byte charsets just aren't worth the increased complication in indexing).
 byte v(int i)
          Value at index i
 

Field Detail

utf8

static final java.nio.charset.Charset utf8
Method Detail

v

byte v(int i)
Value at index i


n

int n()
Length of the sequence


copyTo

void copyTo(int i,
            byte[] dest,
            int iDest,
            int c)

string

java.lang.String string(int i,
                        int c)
Strings are encoded and decoded using the UTF-8 charset (multi-byte charsets just aren't worth the increased complication in indexing).


isEmpty

boolean isEmpty()

first

byte first()

last

byte last()

copyOf

byte[] copyOf(int i,
              int c)

copyOf

byte[] copyOf()

string

java.lang.String string()


Copyright © 2012 Metron, Inc.. All Rights Reserved.