This commit is contained in:
Maff 2019-08-28 00:38:16 +01:00
parent 3b3cddc68d
commit ead19b2175
1 changed files with 0 additions and 7 deletions

View File

@ -79,13 +79,6 @@ namespace libsharperang {
default: throw new NullReferenceException();
}
}
private byte[] SwapEndianness(uint value) {
uint b1 = (value >> 0) & 0xff;
uint b2 = (value >> 8) & 0xff;
uint b3 = (value >> 16) & 0xff;
uint b4 = (value >> 24) & 0xff;
return BitConverter.GetBytes((b1 << 24) | (b2 << 16) | (b3 << 8) | (b4 << 0));
}
public byte[] Build(Opcode opcode, byte[] data) => Build(opcode, data, transformer);
public byte[] Build(Opcode opcode, byte[] data, DataTransforms transformer) {
if (!transformer.IsCrcInitialised()) transformer.InitialiseCrc();