code: public static int getLongOctalBytes(long value, byte[] buf, int offset, int length) {
          byte[] temp = new byte[length + 1];
          getOctalBytes( value, temp, 0, length + 1 );
          System.arraycopy( temp, 0, buf, offset, length );
          return offset + length;
      }
docs: Write an octal long integer to a header buffer.
  
  @param value
  The value to write.
  @param buf
  The header buffer from which to parse.
  @param offset
  The offset into the buffer from which to parse.
  @param length
  The number of header bytes to parse.
  
  @return The long value of the octal bytes.