private static bool OnRequestFileBlock(ByteArray byteArray, IFileServerService serverService) { String file = byteArray.readUTF(); int blockId = byteArray.readDynamicsInt(); int size = byteArray.readDynamicsInt(); ByteArray stream = ByteArray.SReadFromByteArray(byteArray); int special = byteArray.readDynamicsInt(); int crc = byteArray.readIntNCRC(); if (crc == byteArray.CRC) { serverService.OnRequestFileBlock(file, blockId, size, ref stream, special); } byteArray.Recycle(); return(true); }