infrastructure/native/protocol/directed_param library
Classes
- DirectedParam
-
A parameter with an explicit ParamDirection for API surfaces that
prepare the contract for
OUTPUT/INOUT(native engine support is still being rolled in — seedoc/notes/TYPE_MAPPING.md§3.1).
Constants
-
drt1MagicBytes
→ const List<
int> -
Little-endian DRT1 magic (Rust:
odbc_enginecratebound_parammodule). - kDirectedParamErrorPrefix → const String
-
Stable error prefix, aligned with
output_aware_params/ nativeValidationError(TYPE_MAPPING §3.1).
Functions
-
paramValuesFromDirected(
List< DirectedParam> params) → List<ParamValue> -
Converts DirectedParam rows to a legacy v0 binary ParamValue list
(concatenated tags, all treated as
INPUTon the wire). -
serializeDirectedParams(
List< DirectedParam> params) → Uint8List -
Serialises DirectedParam values to a DRT1 buffer:
DRT1+ u32 count and repeated(u8 direction)(ParamValue wire). PreferIOdbcService.executeQueryDirectedParamsorIOdbcRepository.executeQueryParamBufferwith this buffer. Engine mapping: ParamDirectioninput= 0,output= 1,inOut= 2. -
validateDirectedOutInOut(
ParamDirection direction, ParamValue pv) → void -
Client-side checks for DRT1
OUT/INOUTthat the native engine will reject; fails fast with the same slugs asoutput_aware_params.rs.