@whisklabs/grpc
Version:
gRPC generator and http library for typescript
20 lines • 744 B
JavaScript
export var Varint = 0; // varint: int32, int64, uint32, uint64, sint32, sint64, bool, enum
export var Fixed64 = 1; // 64-bit: double, fixed64, sfixed64
export var Bytes = 2; // length-delimited: string, bytes, embedded messages, packed repeated fields
export var Fixed32 = 5; // 32-bit: float, fixed32, sfixed32
export var SHIFT_LEFT_32 = (1 << 16) * (1 << 16);
export var SHIFT_RIGHT_32 = 1 / SHIFT_LEFT_32;
export function MapStruct(item) {
return function MapValue() {
return [
[1, 'key', item[1], 1],
[2, 'value', item[2], 1],
];
};
}
export function WrapperStruct(value) {
return function Wrapper() {
return [[1, 'value', value, 1]];
};
}
//# sourceMappingURL=constant.js.map