Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /*
  2. * Copyright 2012 ZXing authors
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. @class ZXByteArray;
  17. /**
  18. * Encapsulates the result of decoding a matrix of bits. This typically
  19. * applies to 2D barcode formats. For now it contains the raw bytes obtained,
  20. * as well as a String interpretation of those bytes, if applicable.
  21. */
  22. @interface ZXDecoderResult : NSObject
  23. @property (nonatomic, strong, readonly) ZXByteArray *rawBytes;
  24. @property (nonatomic, copy, readonly) NSString *text;
  25. @property (nonatomic, strong, readonly) NSMutableArray *byteSegments;
  26. @property (nonatomic, copy, readonly) NSString *ecLevel;
  27. @property (nonatomic, copy) NSNumber *errorsCorrected;
  28. @property (nonatomic, copy) NSNumber *erasures;
  29. @property (nonatomic, strong) id other;
  30. @property (nonatomic, assign, readonly) int structuredAppendParity;
  31. @property (nonatomic, assign, readonly) int structuredAppendSequenceNumber;
  32. - (id)initWithRawBytes:(ZXByteArray *)rawBytes text:(NSString *)text
  33. byteSegments:(NSMutableArray *)byteSegments ecLevel:(NSString *)ecLevel;
  34. - (id)initWithRawBytes:(ZXByteArray *)rawBytes text:(NSString *)text
  35. byteSegments:(NSMutableArray *)byteSegments ecLevel:(NSString *)ecLevel
  36. saSequence:(int)saSequence saParity:(int)saParity;
  37. - (BOOL)hasStructuredAppend;
  38. @end