File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ export const LONG32: Def.int32 = Def.int32
9898export const LONG64 : Def . int64 = Def . int64
9999export const LPARAM : Def . int32 | Def . int64 = LONG_PTR
100100export const LPBOOL : Def . int32 = BOOL
101- export const LPBYTE : Def . byte = Def . bytePtr
101+ export const LPBYTE : Def . bytePtr = Def . bytePtr
102102export const LPCOLORREF : Def . uint32 = DWORD
103103export const LPCSTR : Def . int8Ptr = Def . int8Ptr
104104export const LPCWSTR : Def . int16Ptr = Def . int16Ptr
@@ -117,7 +117,7 @@ export const LRESULT: Def.int32 | Def.int64 = LONG_PTR
117117export const NTSTATUS : Def . uint32 = Def . uint32
118118export const PBOOL : Def . uint32Ptr | Def . uint64Ptr = ptr
119119export const PBOOLEAN : Def . boolPtr = Def . boolPtr
120- export const PBYTE : Def . byte = Def . bytePtr
120+ export const PBYTE : Def . bytePtr = Def . bytePtr
121121export const PCHAR : Def . charPtr = Def . charPtr
122122export const PCSTR : Def . uint8Ptr = Def . uint8Ptr
123123export const PCTSTR : Def . int8Ptr | Def . int16Ptr = _WIN64 ? Def . int16Ptr : Def . int8Ptr
Original file line number Diff line number Diff line change 66 */
77export enum Def {
88 bool = 'bool' ,
9- byte = 'int* ' ,
9+ byte = 'uint8_t ' ,
1010 int = 'int' ,
1111 int8 = 'int8_t' ,
1212 int16 = 'int16_t' ,
@@ -28,9 +28,9 @@ export enum Def {
2828 void = 'void' ,
2929
3030 boolPtr = 'bool*' ,
31- bytePtr = 'int *' ,
31+ bytePtr = 'uint8_t *' ,
3232 charPtr = 'char*' ,
33- intPtr = 'int' ,
33+ intPtr = 'int* ' ,
3434 int8Ptr = 'int8_t*' ,
3535 int16Ptr = 'int16_t*' ,
3636 int32Ptr = 'int32_t*' ,
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ import { assertStructUnion } from '#@/helper.js'
99const name = 'RAWHID'
1010const pointer = LPRAWHID
1111const factory = RAWHID_Factory
12- const size = 16 // ? 12
12+ const size = 12
1313const fn = `${ name } _Factory`
1414
1515describe ( fileShortPath ( import . meta. url ) , ( ) => {
You can’t perform that action at this time.
0 commit comments