mirror of
https://github.com/lune-org/lune.git
synced 2025-04-07 12:00:56 +01:00
fix
This commit is contained in:
parent
b95266ef3c
commit
7856764fd4
1 changed files with 10 additions and 11 deletions
|
@ -289,7 +289,7 @@ export type CTypeInfo<T, R> = {
|
||||||
@tag Method
|
@tag Method
|
||||||
@Method ptr
|
@Method ptr
|
||||||
|
|
||||||
create a pointer subtype.
|
Create a pointer subtype.
|
||||||
|
|
||||||
@return pointer subtype
|
@return pointer subtype
|
||||||
]=]
|
]=]
|
||||||
|
@ -300,10 +300,10 @@ export type CTypeInfo<T, R> = {
|
||||||
@tag Method
|
@tag Method
|
||||||
@Method arr
|
@Method arr
|
||||||
|
|
||||||
create an array subtype.
|
Create an array subtype.
|
||||||
|
|
||||||
@param len The length of the array
|
@param len The length of the array
|
||||||
@return array subtype
|
@return An array subtype
|
||||||
]=]
|
]=]
|
||||||
arr: (self: CTypeInfo<T, R>, len: number) -> CArrInfo<CTypeInfo<T, R>, R>,
|
arr: (self: CTypeInfo<T, R>, len: number) -> CArrInfo<CTypeInfo<T, R>, R>,
|
||||||
|
|
||||||
|
@ -435,10 +435,9 @@ export type CPtrInfo<T> = {
|
||||||
@Method arr
|
@Method arr
|
||||||
|
|
||||||
create an array subtype.
|
create an array subtype.
|
||||||
FIXME: recursive types; result 'any' should be CArrInfo<CPtrInfo<T>>
|
|
||||||
|
|
||||||
@param len The length of the array
|
@param len The length of the array
|
||||||
@return array subtype
|
@return An array subtype
|
||||||
]=]
|
]=]
|
||||||
arr: (self: CPtrInfo<T>, len: number) -> any,
|
arr: (self: CPtrInfo<T>, len: number) -> any,
|
||||||
|
|
||||||
|
@ -748,21 +747,21 @@ export type CStructInfo = {
|
||||||
@method copyData
|
@method copyData
|
||||||
|
|
||||||
returns the byte offset of the field.
|
returns the byte offset of the field.
|
||||||
|
|
||||||
@param field index
|
@param field index
|
||||||
@return byte offset
|
@return the byte offset
|
||||||
]=]
|
]=]
|
||||||
offset: (self: CStructInfo, index: number) -> number,
|
offset: (self: CStructInfo, index: number) -> number,
|
||||||
|
|
||||||
--[=[
|
--[=[
|
||||||
@within CSturctInfo
|
@within CSturctInfo
|
||||||
@tag Method
|
@tag Method
|
||||||
@method copyData
|
@method field
|
||||||
|
|
||||||
returns the field type
|
Get the field type.
|
||||||
|
|
||||||
@param field index
|
@param index The field index
|
||||||
@return field type
|
@return The field type
|
||||||
]=]
|
]=]
|
||||||
field: (self: CStructInfo, index: number) -> CTypes,
|
field: (self: CStructInfo, index: number) -> CTypes,
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue