src/org/jnetpcap/nio/JMemory.java
public String toDebugString() {
		StringBuilder b = new StringBuilder();

		b.append("JMemory: JMemory@").append(Long.toHexString(physical))
				.append(getClass().toString()).append(": ");
		b.append("size=").append(size).append(" bytes");
		if (!owner) {
			b.append("\n");
			b.append("JMemory: owner=").append((keeper == null) ? "null" : keeper
					.getClass().getName().replaceAll("org.jnetpcap.", ""));
			b.append(".class");
			if (keeper instanceof JMemory) {
				JMemory k = (JMemory) keeper;
				b.append("(size=").append(k.size);
				b.append("/offset=").append(this.physical - k.physical);
				b.append(')');
			}
		} else {
			b.append("\n").append("JMemory: isOwner=").append(owner);
		}

		return b.toString();
	}
/**
	 * Returns a debug string about this JMemory state. Example:
	 * 
	 * <pre>
	 * JMemory@b052fa8: size=1506, owner=nio.JMemoryPool$Block.class(size=10240/offset=4064)
	 * </pre>
	 * 
	 * <ul>
	 * <li>hex nuber, is physical memory location
	 * <li>size = number of bytes of this memory object
	 * <li>owner = the class name of the object that owns the physical memory
	 * <li>isOwner = if true, means that this object is the owner of physical
	 * memory
	 * <li>size in parenthesis = the size of the physical memory allocated by the
	 * owner
	 * <li>offset in parenthesis = the offset into the physical memory block of
	 * this memory object
	 * </ul>
	 * 
	 * @return a summary string describing the state of this memory object
	 */
Returns a debug string about this JMemory state. Example.





@return a summary string describing the state of this memory object
Returns a debug string about this JMemory state . Example . @return a summary string describing the state of this memory object
public String toDebugString() {
		StringBuilder b = new StringBuilder();
		b.append("JMemory: JMemory@").append(Long.toHexString(physical))
				.append(getClass().toString()).append(": ");
		b.append("size=").append(size).append(" bytes");
		if (!owner) {
			b.append("\n");
			b.append("JMemory: owner=").append((keeper == null) ? "null" : keeper
					.getClass().getName().replaceAll("org.jnetpcap.", ""));
			b.append(".class");
			if (keeper instanceof JMemory) {
				JMemory k = (JMemory) keeper;
				b.append("(size=").append(k.size);
				b.append("/offset=").append(this.physical - k.physical);
				b.append(')');
			}
		} else {
			b.append("\n").append("JMemory: isOwner=").append(owner);
		}
		return b.toString();
	}
public String toDebugString ( ) { StringBuilder b = new StringBuilder ( ) ; b . append ( "JMemory: JMemory@" ) . append ( Long . toHexString ( physical ) ) . append ( getClass ( ) . toString ( ) ) . append ( ": " ) ; b . append ( "size=" ) . append ( size ) . append ( " bytes" ) ; if ( ! owner ) { b . append ( "\n" ) ; b . append ( "JMemory: owner=" ) . append ( ( keeper == null ) ? "null" : keeper . getClass ( ) . getName ( ) . replaceAll ( "org.jnetpcap." , "" ) ) ; b . append ( ".class" ) ; if ( keeper instanceof JMemory ) { JMemory k = ( JMemory ) keeper ; b . append ( "(size=" ) . append ( k . size ) ; b . append ( "/offset=" ) . append ( this . physical - k . physical ) ; b . append ( ')' ) ; } } else { b . append ( "\n" ) . append ( "JMemory: isOwner=" ) . append ( owner ) ; } return b . toString ( ) ; }
Returns a debug string about this JMemory state.
Returns a debug string about this JMemory state .