prxxss
prxxss
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
Of course. I really appreciate it
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
thank you that works well. i appreciate it :), T is just a number, like byte, ushort, uint, and ulong
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
i got it thanks :)
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
got it, thanks
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
ok got that down, but how do i define the dictionary then? because Converter takes in a generic..
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
ok looking now
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
i cant reallyt understand how the psuedocode works? Any way you can provide a working example? Its fine if it only converts 1 type just need an idea of how to add a type conversion
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
i still have no idea how it works
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
wait no
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
like this?
class Converter {
public byte[] ConvertToBytes(int value) {

}

public byte[] ConvertToBytes(ushort value) {

}
}
class Converter {
public byte[] ConvertToBytes(int value) {

}

public byte[] ConvertToBytes(ushort value) {

}
}
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
what exactly is Converter?
41 replies
CC#
Created by prxxss on 11/9/2024 in #help
✅ Get bytes and append to List c#
got it, thank you, ill try to get this working
41 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
it works, thanks guys for the brainstorming
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
i found
BitConverter.HalfToUInt16Bits
BitConverter.HalfToUInt16Bits
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
i dont think x2 can be used on a non-integer type
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
huh?
Unhandled exception. System.FormatException: Format specifier was invalid.
Unhandled exception. System.FormatException: Format specifier was invalid.
string rep = v.ToString("X2").PadLeft(size, '0');
string rep = v.ToString("X2").PadLeft(size, '0');
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
bool is the first overload for ToString, it means there isnt an overload supporting Half
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
thats hex right?
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
No description
59 replies
CC#
Created by prxxss on 11/8/2024 in #help
Get 16 bit floating point precision as a ushort
because i cant directly convert a half to a binary string
59 replies