| ... | @@ -122,10 +122,7 @@ pub fn TrailerFlags(comptime Fields: type) type { | ... | @@ -122,10 +122,7 @@ pub fn TrailerFlags(comptime Fields: type) type { |
| 122 | } | 122 | } |
| 123 | | 123 | |
| 124 | pub fn Field(comptime field: FieldEnum) type { | 124 | pub fn Field(comptime field: FieldEnum) type { |
| 125 | inline for (@typeInfo(Fields).Struct.fields) |field_info, i| { | 125 | return @typeInfo(Fields).Struct.fields[@enumToInt(field)].field_type; |
| 126 | if (i == @enumToInt(field)) | | |
| 127 | return field_info.field_type; | | |
| 128 | } | | |
| 129 | } | 126 | } |
| 130 | | 127 | |
| 131 | pub fn sizeInBytes(self: Self) usize { | 128 | pub fn sizeInBytes(self: Self) usize { |