Here you can find the source of addByteToMessage(final List
Parameter | Description |
---|---|
message | a parameter |
bytevalue | a parameter |
checksum | a parameter |
public static int addByteToMessage(final List<Byte> message, final byte bytevalue, final int checksum)
//package com.java2s; // it under the terms of the GNU General Public License as published by import java.util.List; public class Main { /*********************************************************************************************** * Add a byte to the message, updating the checksum. */*from ww w. j a v a 2s . c o m*/ * @param message * @param bytevalue * @param checksum * * @return int */ public static int addByteToMessage(final List<Byte> message, final byte bytevalue, final int checksum) { int intChecksum; intChecksum = checksum; message.add(bytevalue); intChecksum += bytevalue; return (intChecksum); } }