Package org.yecht

Class Bytestring


  • public class Bytestring
    extends java.lang.Object
    Why says 'Reinvent the wheel...'. I'm reinventing it a few times over.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      byte[] buffer  
      static int CHUNKSIZE  
      (package private) int hash  
      static int HASH  
      (package private) int length  
      (package private) boolean printed  
      (package private) int remaining  
    • Constructor Summary

      Constructors 
      Constructor Description
      Bytestring()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void append​(byte code, byte[] inbuf, int start, int finish)  
      void extend​(Bytestring ext)  
      static int strlen​(byte[] buf)  
      static int strlen​(byte[] buf, int start)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • hash

        int hash
      • buffer

        public byte[] buffer
      • length

        int length
      • remaining

        int remaining
      • printed

        boolean printed
    • Constructor Detail

      • Bytestring

        public Bytestring()
    • Method Detail

      • strlen

        public static int strlen​(byte[] buf)
      • strlen

        public static int strlen​(byte[] buf,
                                 int start)
      • append

        public void append​(byte code,
                           byte[] inbuf,
                           int start,
                           int finish)