moonwave annotation fix

This commit is contained in:
kimpure 2024-11-06 16:17:01 +09:00
parent 8b2fdbc810
commit a05c598dc3

View file

@ -291,7 +291,7 @@ export type CTypeInfo<T, R> = {
Create a pointer subtype. Create a pointer subtype.
@return pointer subtype @return A pointer subtype
]=] ]=]
ptr: (self: CTypeInfo<T, R>) -> CPtrInfo<CTypeInfo<T, R>>, ptr: (self: CTypeInfo<T, R>) -> CPtrInfo<CTypeInfo<T, R>>,
@ -432,7 +432,7 @@ export type CPtrInfo<T> = {
@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 An array subtype @return An array subtype
@ -445,34 +445,35 @@ export type CPtrInfo<T> = {
@tag Method @tag Method
@Method ptr @Method ptr
create a pointer subtype. Create a pointer subtype.
@return pointer subtype @return A pointer subtype
]=] ]=]
ptr: (self: CPtrInfo<T>) -> any, ptr: (self: CPtrInfo<T>) -> any,
--[=[ --[=[
@within CPtrInfo @within CPtrInfo
@tag Method @tag Method
@Method readData @Method readRef
Similar to readData. Reads data in the reference (the memory space pointed to by reference). Similar to readData, read a lua value from reference.
@param Reference to read @param target Target reference to read data from
@param byte offset @param offset Offset to read data from
@return A lua value
]=] ]=]
readRef: (self: CPtrInfo<T>, target: RefData | BoxData, offset: number?) -> RefData, readRef: (self: CPtrInfo<T>, target: RefData | BoxData, offset: number?) -> any,
--[=[ --[=[
@within CPtrInfo @within CPtrInfo
@tag Method @tag Method
@Method writeData @Method writeRef
Similar to writeData. Writes data in the reference (in the memory space pointed to by). Similar to writeData, write a lua value into reference.
@param reference to use @param target Target reference to write data into
@param lua value to use @param value Lua data to write
@param byte offset @param offset Offset to write data into
]=] ]=]
writeRef: ( writeRef: (
self: CPtrInfo<T>, self: CPtrInfo<T>,
@ -519,9 +520,9 @@ export type CArrInfo<T, R> = {
@tag Method @tag Method
@Method ptr @Method ptr
create a pointer subtype. Create a pointer subtype.
@return pointer subtype @return A pointer subtype
]=] ]=]
ptr: (self: CArrInfo<T, R>) -> CPtrInfo<CArrInfo<T, R>>, ptr: (self: CArrInfo<T, R>) -> CPtrInfo<CArrInfo<T, R>>,
@ -531,7 +532,7 @@ export type CArrInfo<T, R> = {
@tag Method @tag Method
@Method box @Method box
Create a box with initial values Create a box with initial values.
@param table The array of field values @param table The array of field values
@return A box @return A box
@ -576,9 +577,9 @@ export type CArrInfo<T, R> = {
Copy values from the source and paste them into the target. Copy values from the source and paste them into the target.
@param destination where the data will be pasted @param dst where the data will be pasted
@param src The source data @param src The source data
@param dstOffset The offset in the destination where the data will be pasted @param dstOffset The offset in the dst where the data will be pasted
@param srcOffset The offset in the source data from where the data will be copied @param srcOffset The offset in the source data from where the data will be copied
]=] ]=]
copyData: ( copyData: (
@ -592,7 +593,7 @@ export type CArrInfo<T, R> = {
--[=[ --[=[
@within CArrInfo @within CArrInfo
@tag Method @tag Method
@method copyData @method offset
Get the byte offset of the field. Get the byte offset of the field.