Examples of readUShort()


Examples of org.apache.poi.util.LittleEndianInput.readUShort()

    // Confirm first few bytes of ContinueRecord
    LittleEndianInput crIn = new LittleEndianByteArrayInputStream(ser, (MAX_BIFF_DATA + 4));
    int nCharsInFirstRec = MAX_BIFF_DATA - (2 + 1); // strLen, optionFlags
    int nCharsInSecondRec = TEXT_LEN - nCharsInFirstRec;
    assertEquals(ContinueRecord.sid, crIn.readUShort());
    assertEquals(1 + nCharsInSecondRec, crIn.readUShort());
    assertEquals(0, crIn.readUByte());
    assertEquals('N', crIn.readUByte());
    assertEquals('O', crIn.readUByte());
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput.readUShort()

    // Confirm first few bytes of ContinueRecord
    LittleEndianInput crIn = new LittleEndianByteArrayInputStream(ser, (MAX_BIFF_DATA + 4));
    int nCharsInFirstRec = MAX_BIFF_DATA - (2 + 1); // strLen, optionFlags
    int nCharsInSecondRec = TEXT_LEN - nCharsInFirstRec;
    assertEquals(ContinueRecord.sid, crIn.readUShort());
    assertEquals(1 + nCharsInSecondRec, crIn.readUShort());
    assertEquals(0, crIn.readUByte());
    assertEquals('N', crIn.readUByte());
    assertEquals('O', crIn.readUByte());

    // re-read and make sure string value is the same
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput.readUShort()

    field_1_option_flag                 = in.readShort();
    field_2_keyboard_shortcut           = in.readByte();
    int field_3_length_name_text        = in.readUByte();
    int field_4_length_name_definition  = in.readShort();
    field_5_externSheetIndex_plus1      = in.readShort();
    field_6_sheetNumber                 = in.readUShort();
    int f7_customMenuLen      = in.readUByte();
    int f8_descriptionTextLen = in.readUByte();
    int f9_helpTopicTextLen  = in.readUByte();
    int f10_statusBarTextLen = in.readUByte();
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput.readUShort()

   * incorrect encoding.  The formula here is one such example (Excel displays #VALUE!).
   */
  public void testConvertSharedFormulasOperandClasses_bug45123() {
   
    LittleEndianInput in = TestcaseRecordInputStream.createLittleEndian(SHARED_FORMULA_WITH_REF_ARRAYS_DATA);
    int encodedLen = in.readUShort();
    Ptg[] sharedFormula = Ptg.readTokens(encodedLen, in);
   
    Ptg[] convertedFormula = SharedFormulaRecord.convertSharedFormulas(sharedFormula, 100, 200);
   
    RefPtg refPtg = (RefPtg) convertedFormula[1];
View Full Code Here

Examples of org.apache.poi.util.LittleEndianInput.readUShort()

    field_8_parsed_expr = Formula.create(Ptg.EMPTY_PTG_ARRAY);
  }

  public FormulaRecord(RecordInputStream ris) {
    LittleEndianInput in = ris;
    field_1_row = in.readUShort();
    field_2_column = in.readShort();
    field_3_xf = in.readShort();
    long valueLongBits  = in.readLong();
    field_5_options = in.readShort();
    specialCachedValue = SpecialCachedValue.create(valueLongBits);
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readUshort()

            @Override
            public void annotateItem(@Nonnull AnnotatedBytes out, int itemIndex, @Nullable String itemIdentity) {
                try {
                    DexReader reader = dexFile.readerAt(out.getCursor());

                    int registers = reader.readUshort();
                    out.annotate(2, "registers_size = %d", registers);

                    int inSize = reader.readUshort();
                    out.annotate(2, "ins_size = %d", inSize);
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readUshort()

                    DexReader reader = dexFile.readerAt(out.getCursor());

                    int registers = reader.readUshort();
                    out.annotate(2, "registers_size = %d", registers);

                    int inSize = reader.readUshort();
                    out.annotate(2, "ins_size = %d", inSize);

                    int outSize = reader.readUshort();
                    out.annotate(2, "outs_size = %d", outSize);
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readUshort()

                    out.annotate(2, "registers_size = %d", registers);

                    int inSize = reader.readUshort();
                    out.annotate(2, "ins_size = %d", inSize);

                    int outSize = reader.readUshort();
                    out.annotate(2, "outs_size = %d", outSize);

                    int triesCount = reader.readUshort();
                    out.annotate(2, "tries_size = %d", triesCount);
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readUshort()

                    out.annotate(2, "ins_size = %d", inSize);

                    int outSize = reader.readUshort();
                    out.annotate(2, "outs_size = %d", outSize);

                    int triesCount = reader.readUshort();
                    out.annotate(2, "tries_size = %d", triesCount);

                    int debugInfoOffset = reader.readSmallUint();
                    out.annotate(4, "debug_info_off = 0x%x", debugInfoOffset);
View Full Code Here

Examples of org.jf.dexlib2.dexbacked.DexReader.readUshort()

                        out.deindent();
                    }

                    if (triesCount > 0) {
                        if ((reader.getOffset() % 4) != 0) {
                            reader.readUshort();
                            out.annotate(2, "padding");
                        }

                        out.annotate(0, "try_items:");
                        out.indent();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.