Dreamine.PLC.Mitsubishi.MC
1.0.1
Dreamine.PLC.Mitsubishi.MC 산업 자동화 및 I/O 기능을 제공합니다.
Toggle main menu visibility
로딩중...
검색중...
일치하는것 없음
MitsubishiMcEndian.cs
이 파일의 문서화 페이지로 가기
1
namespace
Dreamine.PLC.Mitsubishi.MC.Protocol
;
2
11
public
static
class
MitsubishiMcEndian
12
{
44
public
static
void
WriteUInt16LittleEndian
(ICollection<byte> buffer, ushort value)
45
{
46
ArgumentNullException.ThrowIfNull(buffer);
47
48
buffer.Add((
byte
)(value & 0xFF));
49
buffer.Add((
byte
)((value >> 8) & 0xFF));
50
}
51
91
public
static
void
WriteUInt24LittleEndian
(ICollection<byte> buffer,
int
value)
92
{
93
ArgumentNullException.ThrowIfNull(buffer);
94
95
if
(value is < 0 or > 0xFFFFFF)
96
{
97
throw
new
ArgumentOutOfRangeException(nameof(value), value,
"The value must be between 0 and 0xFFFFFF."
);
98
}
99
100
buffer.Add((
byte
)(value & 0xFF));
101
buffer.Add((
byte
)((value >> 8) & 0xFF));
102
buffer.Add((
byte
)((value >> 16) & 0xFF));
103
}
104
}
Dreamine.PLC.Mitsubishi.MC.Protocol
Definition
MitsubishiMcBinary3EFrameBuilder.cs:6
Dreamine.PLC.Mitsubishi.MC.Protocol.MitsubishiMcEndian
Definition
MitsubishiMcEndian.cs:12
Dreamine.PLC.Mitsubishi.MC.Protocol.MitsubishiMcEndian.WriteUInt16LittleEndian
static void WriteUInt16LittleEndian(ICollection< byte > buffer, ushort value)
Definition
MitsubishiMcEndian.cs:44
Dreamine.PLC.Mitsubishi.MC.Protocol.MitsubishiMcEndian.WriteUInt24LittleEndian
static void WriteUInt24LittleEndian(ICollection< byte > buffer, int value)
Definition
MitsubishiMcEndian.cs:91
Protocol
MitsubishiMcEndian.cs
다음에 의해 생성됨 :
1.17.0