SolitaType<T>: {
name: string;
deserialize: ((data: Buffer, offset?: number) => [T, number]);
fromArgs: ((args: T) => {
serialize: (() => [Buffer, number]);
});
}
Type declaration
-
name: string
-
deserialize: ((data: Buffer, offset?: number) => [T, number])
-
- (data: Buffer, offset?: number): [T, number]
-
Parameters
-
data: Buffer
-
Optional
offset: number
Returns [T, number]
-
fromArgs: ((args: T) => {
serialize: (() => [Buffer, number]);
})
-
- (args: T): {
serialize: (() => [Buffer, number]);
}
-
Returns {
serialize: (() => [Buffer, number]);
}
-
serialize: (() => [Buffer, number])
-
- (): [Buffer, number]
-
Returns [Buffer, number]