From 62bd9719a884f9b5f7e8a3577c722729fee05779 Mon Sep 17 00:00:00 2001 From: "srowen@gmail.com" Date: Tue, 12 Feb 2013 20:08:33 +0000 Subject: [PATCH] Doc an old ByteMatrix method in response to an SO question git-svn-id: https://zxing.googlecode.com/svn/trunk@2572 59b500cc-1b3d-0410-9834-0bbf25fbcc57 --- core/src/com/google/zxing/qrcode/encoder/ByteMatrix.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/src/com/google/zxing/qrcode/encoder/ByteMatrix.java b/core/src/com/google/zxing/qrcode/encoder/ByteMatrix.java index 61d089fa6..d7fef0601 100644 --- a/core/src/com/google/zxing/qrcode/encoder/ByteMatrix.java +++ b/core/src/com/google/zxing/qrcode/encoder/ByteMatrix.java @@ -17,9 +17,6 @@ package com.google.zxing.qrcode.encoder; /** - * A class which wraps a 2D array of bytes. The default usage is signed. If you want to use it as a - * unsigned container, it's up to you to do byteValue & 0xff at each location. - * * JAVAPORT: The original code was a 2D array of ints, but since it only ever gets assigned * -1, 0, and 1, I'm going to use less memory and go with bytes. * @@ -49,6 +46,9 @@ public final class ByteMatrix { return bytes[y][x]; } + /** + * @return an internal representation as bytes, in row-major order. array[y][x] represents point (x,y) + */ public byte[][] getArray() { return bytes; }