tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ma...@apache.org
Subject svn commit: r1684754 - /tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java
Date Wed, 10 Jun 2015 19:55:36 GMT
Author: markt
Date: Wed Jun 10 19:55:35 2015
New Revision: 1684754

URL: http://svn.apache.org/r1684754
Log:
Another util method

Modified:
    tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java

Modified: tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java
URL: http://svn.apache.org/viewvc/tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java?rev=1684754&r1=1684753&r2=1684754&view=diff
==============================================================================
--- tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java (original)
+++ tomcat/trunk/java/org/apache/coyote/http2/ByteUtil.java Wed Jun 10 19:55:35 2015
@@ -61,6 +61,11 @@ public class ByteUtil {
     }
 
 
+    public static void setOneBytes(byte[] output, int firstByte, int value) {
+        output[firstByte] = (byte) (value & 0xFF);
+    }
+
+
     public static void setTwoBytes(byte[] output, int firstByte, int value) {
         output[firstByte] = (byte) ((value & 0xFF00) >> 8);
         output[firstByte + 1] = (byte) (value & 0xFF);



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Mime
View raw message