Examples of byteSize()


Examples of org.bitbucket.ouyi.conv.test.ConvTestTest.byteSize()

  public final void testFromBytes() throws Exception {
    Convertibles.initialize("org.bitbucket.ouyi.conv.test");
   
    ConvTestTest testObject = new ConvTestTest(13);
   
    ByteBuffer b = ByteBuffer.allocate(testObject.byteSize());
   
    testObject.toBytes(b);
   
    b.flip();
   
View Full Code Here

Examples of org.jruby.RubyString.bytesize()

                str2 = digest(context, oth, null).convertToString();
            } else {
                str1 = to_s(context, self).convertToString();
                str2 = oth.convertToString();
            }
            boolean ret = str1.bytesize().eql(str2.bytesize()) && (str1.eql(str2));
            return ret ? context.runtime.getTrue() : context.runtime.getFalse();
        }

        @JRubyMethod()
        public static IRubyObject inspect(ThreadContext context, IRubyObject self) {
View Full Code Here

Examples of sun.jvm.hotspot.memory.MemRegion.byteSize()

    }

    public long capacity() {
        Address g1CommittedAddr = addr.addOffsetTo(g1CommittedFieldOffset);
        MemRegion g1Committed = new MemRegion(g1CommittedAddr);
        return g1Committed.byteSize();
    }

    public long used() {
        return summaryBytesUsedField.getValue(addr);
    }
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.