- Introduced FileRead and Record classes for handling file reading in the Transmission Control Protocol. - Enhanced Description, Detail, and other related classes with JSON serialization attributes for improved data handling. - Implemented methods for reading and processing files, including network stream management. - Updated unit tests to cover new functionality and ensure robust testing. - Added new PDSF file handling classes and integrated them into the project structure. - Refactored existing code to utilize source generation for JSON serialization, improving performance and maintainability.
28 lines
785 B
C#
28 lines
785 B
C#
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Net.Sockets;
|
|
using System.Reflection;
|
|
|
|
namespace Adaptation.FileHandlers.TransmissionControlProtocol;
|
|
|
|
#nullable enable
|
|
|
|
internal class Record
|
|
{
|
|
|
|
public BinaryReader BinaryReader { get; }
|
|
public BinaryWriter BinaryWriter { get; }
|
|
public NetworkStream NetworkStream { get; }
|
|
public PropertyInfo? PropertyInfo { get; }
|
|
public List<long> ReadTimes { get; }
|
|
|
|
public Record(BinaryReader binaryReader, BinaryWriter binaryWriter, NetworkStream networkStream, PropertyInfo? propertyInfo, List<long> readTimes)
|
|
{
|
|
BinaryReader = binaryReader;
|
|
BinaryWriter = binaryWriter;
|
|
NetworkStream = networkStream;
|
|
PropertyInfo = propertyInfo;
|
|
ReadTimes = readTimes;
|
|
}
|
|
|
|
} |