fix(core): Removes byte indicator for Enum (#614)
This commit is contained in:
parent
ca5a06e9a2
commit
c3f414f04f
2 changed files with 2 additions and 8 deletions
|
|
@ -70,7 +70,7 @@ namespace Server
|
|||
int Read(Span<byte> buffer);
|
||||
unsafe T ReadEnum<T>() where T : unmanaged, Enum
|
||||
{
|
||||
switch (ReadByte())
|
||||
switch (sizeof(T))
|
||||
{
|
||||
case 1:
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue