Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 /* ************************************************************************
 #
 #  DivConq
 #
 #  http://divconq.com/
 #
 #  Copyright:
 #    Copyright 2014 eTimeline, LLC. All rights reserved.
 #
#  License:
#    See the license.txt file in the project's top-level directory for details.
#  Authors:
#    * Andy White
************************************************************************ */
package divconq.ctp.cmd;
// commands with no additional fields
public class SimpleCommand extends CtpCommand {
	public SimpleCommand() {		
	}
	public SimpleCommand(int code) {
		super(code);
	}
	public ByteBuf encode() {
		int size = 1;  // type
		bb.writeByte(this.);
		return bb;
	}
	public void release() {
		// na
	}
	public boolean decode(ByteBuf in) {
		return true;
	}
New to GrepCode? Check out our FAQ X