> +      int byte4 = in.read();
> +      int length = (byte1 << 24) + (byte2 << 16) + (byte3 << 8) + (byte4 << 
> 0);
> +      byte[] val = new byte[length];
> +      in.read(val, 0, length);
> +      return val;
> +   }
> +
> +   /**
> +    * @see SshKeys
> +    */
> +   // http://www.ietf.org/rfc/rfc4253.txt
> +   private static void writeLengthFirst(byte[] array, ByteArrayOutputStream 
> out) throws IOException {
> +      out.write(array.length >>> 24 & 0xFF);
> +      out.write(array.length >>> 16 & 0xFF);
> +      out.write(array.length >>> 8 & 0xFF);
> +      out.write(array.length >>> 0 & 0xFF);

No useful bit twiddling methods anywhere? But this is clear enough, so fine 
with me...

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/49/files#r9166403

Reply via email to