1
1
Fork 0
mirror of https://github.com/lune-org/lune.git synced 2025-04-07 12:00:56 +01:00
This commit is contained in:
kimpure 2024-11-05 22:02:29 +09:00
parent b95266ef3c
commit 7856764fd4

View file

@ -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,
} }