Class ByteVector

  • All Implemented Interfaces:
    java.lang.Cloneable
    Direct Known Subclasses:
    Bytecode

    class ByteVector
    extends java.lang.Object
    implements java.lang.Cloneable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private byte[] buffer  
      private int size  
    • Constructor Summary

      Constructors 
      Constructor Description
      ByteVector()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void add​(int code)  
      void add​(int b1, int b2)  
      void add​(int b1, int b2, int b3, int b4)  
      void addGap​(int length)  
      java.lang.Object clone()  
      byte[] copy()  
      int getSize()  
      int read​(int offset)  
      void write​(int offset, int value)  
      • Methods inherited from class java.lang.Object

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

      • buffer

        private byte[] buffer
      • size

        private int size
    • Constructor Detail

      • ByteVector

        public ByteVector()
    • Method Detail

      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException
      • getSize

        public final int getSize()
      • copy

        public final byte[] copy()
      • read

        public int read​(int offset)
      • write

        public void write​(int offset,
                          int value)
      • add

        public void add​(int code)
      • add

        public void add​(int b1,
                        int b2)
      • add

        public void add​(int b1,
                        int b2,
                        int b3,
                        int b4)
      • addGap

        public void addGap​(int length)