Examples of byteValue()


Examples of ptolemy.data.UnsignedByteToken.byteValue()

                    }

                    for (int j = 0; j < inputLength; j++) {
                        UnsignedByteToken dataToken = (UnsignedByteToken) dataArrayToken
                                .getElement(j);
                        out.write(dataToken.byteValue());
                    }

                    out.flush();
                }

Examples of ptolemy.data.UnsignedByteToken.byteValue()

        byte[] dataBytes = new byte[dataArrayToken.length()];

        for (int j = 0; j < dataArrayToken.length(); j++) {
            UnsignedByteToken dataToken = (UnsignedByteToken) dataArrayToken
                    .getElement(j);
            dataBytes[j] = dataToken.byteValue();
        }

        // Convert using the default character encoding.
        String outputString = new String(dataBytes);
        output.send(0, new StringToken(outputString));

Examples of se.llbit.nbt.AnyTag.byteValue()

  private void extractChunkData(@NotNull Map<String, AnyTag> data, @NotNull byte[] blocks, @NotNull byte[] blockData) {
    AnyTag sections = data.get(LEVEL_SECTIONS);
    if (sections.isList()) {
      for (SpecificTag section : ((ListTag) sections).getItemList()) {
        AnyTag yTag = section.get("Y");
        int yOffset = yTag.byteValue() & 0xFF;
        AnyTag blocksTag = section.get("Blocks");
        if (blocksTag.isByteArray(SECTION_BYTES)) {
          System.arraycopy(blocksTag.byteArray(), 0, blocks, SECTION_BYTES*yOffset, SECTION_BYTES);
        }
        AnyTag dataTag = section.get("Data");
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.