Commits

Anonymous committed cfbf6d3

added loadShortArray

Comments (0)

Files changed (1)

core/src/main/java/com/cubeia/firebase/io/PacketInputStream.java

 			data[i] = loadUnsignedShort();
 		}
 	}
-	
+
+	public void loadShortArray(short[] data) throws IOException {
+        for (int i = 0; i < data.length; i++) {
+            data[i] = inBuffer.getShort();
+        }
+    }
+
 	public void loadLongArray(long[] data) throws IOException {
         for (int i = 0; i < data.length; i++) {
             data[i] = inBuffer.getLong();