Module Make.BA_
Contents
Instructions: Use this module in your project
In the IDE (CLion, Visual Studio Code, Xcode, etc.) you use for your DkSDK project:
Add the following to your project's
dependencies/CMakeLists.txt:DkSDKProject_DeclareAvailable(capnp CONSTRAINT "= 3.5.0" FINDLIBS capnp capnp.unix) DkSDKProject_MakeAvailable(capnp)Add the
Findlib::capnplibrary to any desired targets insrc/*/CMakeLists.txt:target_link_libraries(YourPackage_YourLibraryName # ... existing libraries, if any ... Findlib::capnp)Click your IDE's
Buildbutton
Not using DkSDK?
FIRST, do one or all of the following:
Run:
opam install capnp.3.5.0Edit your
dune-projectand add:(package (name YourExistingPackage) (depends ; ... existing dependenices ... (capnp (>= 3.5.0))))Then run:
dune build *.opam # if this fails, run: dune buildEdit your
<package>.opamfile and add:depends: [ # ... existing dependencies ... "capnp" {>= "3.5.0"} ]Then run:
opam install . --deps-only
FINALLY, add the capnp library to any desired (library)and/or (executable) targets in your **/dune files:
(library
(name YourLibrary)
; ... existing library options ...
(libraries
; ... existing libraries ...
capnp))
(executable
(name YourExecutable)
; ... existing executable options ...
(libraries
; ... existing libraries ...
capnp))moduleNM`` =NM
moduleDM`` =Message.BytesMessage
moduleNC:sig...end
moduleDefaultsCopier:sig...end
moduleBOps:sig...end
valuint8_list_of_string : ``null_terminated:bool->``dest_message:rwNM.Message.t->``string->rwNM.ListStorage.t
valvoid_list_codecs : ``unitNC.ListCodecs.t
valbit_list_codecs : ``boolNC.ListCodecs.t
valint8_list_codecs : ``intNC.ListCodecs.t
valint16_list_codecs : ``intNC.ListCodecs.t
valint32_list_codecs :Stdlib.Int32.tNC.ListCodecs.t
valint64_list_codecs :Stdlib.Int64.tNC.ListCodecs.t
valuint8_list_codecs : ``intNC.ListCodecs.t
valuint16_list_codecs : ``intNC.ListCodecs.t
valuint32_list_codecs :Stdint.Uint32.tNC.ListCodecs.t
valuint64_list_codecs :Stdint.Uint64.tNC.ListCodecs.t
valfloat32_list_codecs : ``floatNC.ListCodecs.t
valfloat64_list_codecs : ``floatNC.ListCodecs.t
valtext_list_codecs : ``stringNC.ListCodecs.t
valblob_list_codecs : ``stringNC.ListCodecs.t
valstruct_list_codecs : ``(Message.rw,'a)``NC.StructStorage.tNC.ListCodecs.t
moduleDiscr:sig...end
valset_opt_discriminant :rwNM.Slice.t->Discr.toption``->unit
valget_data_region : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->rwNM.Slice.t
valget_bit : ``default:bool->``(rw,'a)``NM.StructStorage.t->``byte_ofs:int->``bit_ofs:int->bool
valget_int8 : ``default:int->``(rw,'a)``NM.StructStorage.t->``int->int
valget_int16 : ``default:int->``(rw,'a)``NM.StructStorage.t->``int->int
valget_int32 : ``default:int32->``(rw,'a)``NM.StructStorage.t->``int->int32
valget_int64 : ``default:int64->``(rw,'a)``NM.StructStorage.t->``int->int64
valget_uint8 : ``default:int->``(rw,'a)``NM.StructStorage.t->``int->int
valget_uint16 : ``default:int->``(rw,'a)``NM.StructStorage.t->``int->int
valget_uint32 : ``default:Uint32.t->``(rw,'a)``NM.StructStorage.t->``int->Uint32.t
valget_uint64 : ``default:Uint64.t->``(rw,'a)``NM.StructStorage.t->``int->Uint64.t
valget_float32 : ``default_bits:int32->``(rw,'a)``NM.StructStorage.t->``int->float
valget_float64 : ``default_bits:int64->``(rw,'a)``NM.StructStorage.t->``int->float
valset_void : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->unit
valset_bit : ``?discr:Discr.t->``default:bool->``(rw,'a)``NM.StructStorage.t->``byte_ofs:int->``bit_ofs:int->``bool->unit
valset_int8 : ``?discr:Discr.t->``default:int->``(rw,'a)``NM.StructStorage.t->``int->``int->unit
valset_int16 : ``?discr:Discr.t->``default:int->``(rw,'a)``NM.StructStorage.t->``int->``int->unit
valset_int32 : ``?discr:Discr.t->``default:int32->``(rw,'a)``NM.StructStorage.t->``int->``int32->unit
valset_int64 : ``?discr:Discr.t->``default:int64->``(rw,'a)``NM.StructStorage.t->``int->``int64->unit
valset_uint8 : ``?discr:Discr.t->``default:int->``(rw,'a)``NM.StructStorage.t->``int->``int->unit
valset_uint16 : ``?discr:Discr.t->``default:int->``(rw,'a)``NM.StructStorage.t->``int->``int->unit
valset_uint32 : ``?discr:Discr.t->``default:Uint32.t->``(rw,'a)``NM.StructStorage.t->``int->Uint32.t->unit
valset_uint64 : ``?discr:Discr.t->``default:Uint64.t->``(rw,'a)``NM.StructStorage.t->``int->Uint64.t->unit
valset_float32 : ``?discr:Discr.t->``default_bits:int32->``(rw,'a)``NM.StructStorage.t->``int->``float->unit
valset_float64 : ``?discr:Discr.t->``default_bits:int64->``(rw,'a)``NM.StructStorage.t->``int->``float->unit
valhas_field : ``(rw,'a)``NM.StructStorage.t->``int->bool
valget_text : ``default:string->``(rw,'a)``NM.StructStorage.t->``int->string
valget_blob : ``default:string->``(rw,'a)``NM.StructStorage.t->``int->string
valinit_list_storage : ``storage_type:Capnp__.ListStorageType.t->``num_elements:int->rwNM.Slice.t->rwNM.ListStorage.t
valget_list : ``?struct_sizes:Capnp__.BuilderOps.StructSizes.t->``?default:roDM.ListStorage.t->``storage_type:Capnp__.ListStorageType.t->``codecs:'aNC.ListCodecs.t->``(rw,'b)``NM.StructStorage.t->``int->``(rw,'a0,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_void_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, unit,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_bit_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, bool,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_int8_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_int16_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_int32_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int32,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_int64_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int64,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_uint8_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_uint16_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_uint32_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw,Uint32.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_uint64_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw,Uint64.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_float32_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_float64_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_text_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_blob_list : ``?default:roDM.ListStorage.t->``(rw,'a)``NM.StructStorage.t->``int->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_struct_list : ``?default:roDM.ListStorage.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t->``int->``(rw, ``(rw,'b)``NM.StructStorage.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valget_struct : ``?default:``(ro,'a)``DM.StructStorage.t->``data_words:int->``pointer_words:int->``(rw,'b)``NM.StructStorage.t->``int->``(rw,'a0)``NM.StructStorage.t
valget_pointer : ``?default:roDM.Slice.t->``(rw,'a)``NM.StructStorage.t->``int->rwNM.Slice.t
valget_interface : ``(rw,'a)``NM.StructStorage.t->``int->'bNM.Capability.toption
valset_text : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``string->unit
valset_blob : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``string->unit
valset_list_from_storage : ``?struct_sizes:Capnp__.BuilderOps.StructSizes.t->``storage_type:Capnp__.ListStorageType.t->``codecs:'aNC.ListCodecs.t->``(rw,'b)``NM.StructStorage.t->``int->'capNM.ListStorage.toption``->``(rw,'a0,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_list : ``?discr:Discr.t->``?struct_sizes:Capnp__.BuilderOps.StructSizes.t->``storage_type:Capnp__.ListStorageType.t->``codecs:'aNC.ListCodecs.t->``(rw,'b)``NM.StructStorage.t->``int->``('cap1,'a0,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw,'a1,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_void_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, unit,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, unit,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_bit_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, bool,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, bool,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_int8_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_int16_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_int32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int32,'capNM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int32,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_int64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int64,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int64,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_uint8_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_uint16_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, int,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_uint32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1,Uint32.t,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw,Uint32.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_uint64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1,Uint64.t,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw,Uint64.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_float32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, float,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_float64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, float,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_text_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, string,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_blob_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, string,'cap2NM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_struct_list : ``?discr:Discr.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t->``int->``('cap1, ``(Message.rw,'b)``NM.StructStorage.t,Message.rwNM.ListStorage.t)``Capnp__.InnerArray.t->``(rw, ``(rw,'c)``NM.StructStorage.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valset_struct : ``?discr:Discr.t->``data_words:int->``pointer_words:int->``(rw,'b)``NM.StructStorage.t->``int->``('cap,'a)``NM.StructStorage.toption``->``(rw,'a0)``NM.StructStorage.t
valset_pointer : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->'capNM.Slice.toption``->rwNM.Slice.t
valset_interface : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->'bNM.Capability.toption``->unit
valinit_blob : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->unit
valinit_list : ``?discr:Discr.t->``storage_type:Capnp__.ListStorageType.t->``codecs:'aNC.ListCodecs.t->``(rw,'b)``NM.StructStorage.t->``int->``int->``(rw,'a0,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_void_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, unit,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_bit_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, bool,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_int8_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_int16_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_int32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int32,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_int64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int64,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_uint8_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_uint16_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, int,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_uint32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw,Uint32.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_uint64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw,Uint64.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_float32_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_float64_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, float,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_text_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_blob_list : ``?discr:Discr.t->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, string,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_struct_list : ``?discr:Discr.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t->``int->``int->``(rw, ``(rw,'b)``NM.StructStorage.t,rwNM.ListStorage.t)``Capnp__.InnerArray.t
valinit_struct : ``?discr:Discr.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t->``int->``(rw,'b)``NM.StructStorage.t
valinit_struct_pointer :Message.rwNM.Slice.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t
valget_root_struct :rwNM.Message.t->``data_words:int->``pointer_words:int->``(rw,'a)``NM.StructStorage.t
valalloc_root_struct : ``?message_size:int->``data_words:int->``pointer_words:int->``unit->``(rw,'a)``NM.StructStorage.t
valpointers_struct :'aNM.Slice.t->``('b,'c)``NM.StructStorage.t
valcast_struct : ``('a,'b)``NM.StructStorage.t->``('a,'c)``NM.StructStorage.t
