123456789101112131415161718192021222324252627282930313233343536 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- using Utilities;
- namespace SMBLibrary.RPC
- {
-
-
-
- public struct Version
- {
- public const int Length = 2;
- public byte Major;
- public byte Minor;
- public Version(byte[] buffer, int offset)
- {
- Major = ByteReader.ReadByte(buffer, offset + 0);
- Minor = ByteReader.ReadByte(buffer, offset + 1);
- }
- public void WriteBytes(byte[] buffer, int offset)
- {
- ByteWriter.WriteByte(buffer, offset + 0, Major);
- ByteWriter.WriteByte(buffer, offset + 1, Minor);
- }
- }
- }
|