Added byte type

This commit is contained in:
2025-02-21 11:27:45 +01:00
parent 8b932fb332
commit a42115c0fb
8 changed files with 16 additions and 13 deletions

View File

@ -49,14 +49,16 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
return UInt16
case "uint8":
return UInt8
case "byte":
return Byte
case "bool":
return Bool
case "float":
return Float
case "float64":
return Float64
case "float32":
return Float32
case "bool":
return Bool
case "any":
return Any
}

View File

@ -10,11 +10,12 @@ var (
Int8 = &Base{name: "int8", size: 1}
Float64 = &Base{name: "float64", size: 8}
Float32 = &Base{name: "float32", size: 4}
String = &Array{Of: Int8}
String = &Array{Of: Byte}
)
var (
Bool = Int
Byte = UInt8
Int = Int64
Float = Float64
UInt = Int