diff --git a/src/by/By.Get.cs b/src/by/By.Get.cs index ad0ea88..e65dd94 100644 --- a/src/by/By.Get.cs +++ b/src/by/By.Get.cs @@ -230,6 +230,16 @@ public T Get() return value; } + case Types.Enum: + { + if (!IsValidPrefix(type, sizeof(int))) return default; + + value = (T)(object)BitConverter.ToInt32(Buffer, GetIndex()); + + AddIndex(sizeof(int)); + + return value; + } default: throw new NotImplementedException($"{type}");