public static Command deSerialize(CommandBuilder commandBuilder,byte[] buffer,int offset,int length) { Command command= commandBuilder.getNewCommand(); int position=offset; int paramLength; int paramNameId; while(position-offset<length){ paramLength = SerializationUtils.byteArrayToInt(buffer, position); paramNameId = SerializationUtils.byteArrayToInt(buffer, position+PlanckDBConstants.SIZE_OF_INT); byte[] bytes = new byte[paramLength]; Array.Copy(buffer,position,bytes,0,paramLength); command.map[paramNameId]=bytes; position=position+paramLength; } return command; }
public CommandPull(CommandBuilder commandBuilder) { this.commandBuilder = commandBuilder; }
public AbstractCommand(CommandBuilder commandBuilder) { this.commandBuilder=commandBuilder; }
public Command(CommandBuilder commandBuilder) : base(commandBuilder) { }