10 lines
330 B
TypeScript
10 lines
330 B
TypeScript
import { SerializableType, Type } from '.'
|
|
|
|
/**
|
|
* constructs type of c-like structure. if field is headless, inside of structure will be stored u32 offset, outside of structure will be stored value of field
|
|
* @returns {Type}
|
|
*/
|
|
export function Struct(
|
|
type_obj: Record<string, SerializableType | SerializableType[]>,
|
|
): Type
|