protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }
protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }
protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }
protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }
protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }
protected byte checkForLastFrame(DataFrame frame, byte opcode) { byte local = opcode; if (!frame.isLast()) { validate(outFragmentedType, local); if (outFragmentedType != 0) { local = 0x00; } else { outFragmentedType = local; local &= 0x7F; } } else if (outFragmentedType != 0) { local = (byte) 0x80; outFragmentedType = 0; } else { local |= 0x80; } return local; }