Module BA_.DefaultsCopier
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))moduleROM:sig...end
moduleROC:sig...end
moduleRWC:sig...end
moduleRReader:sig...end
valget_struct_pointer : ``('cap,'a)``NM.StructStorage.t->``int->'capNM.Slice.t
valalloc_struct_storage :Message.rwNM.Message.t->``data_words:int->``pointer_words:int->``(Message.rw,'a)``NM.StructStorage.t
valalloc_list_storage :Message.rwNM.Message.t->Capnp__.ListStorageType.t->``int->Message.rwNM.ListStorage.t
valinit_far_pointer :Message.rwNM.Slice.t->``content:'a->``content_slice:Message.rwNM.Slice.t->``init_normal_pointer:``(Message.rwNM.Slice.t->'a->unit)``->``init_far_pointer_tag:``(Message.rwNM.Slice.t->unit)``->unit
vallist_pointer_type_of_storage_type :Capnp__.ListStorageType.t->Capnp__.ListPointer.element_type_t
valinit_normal_list_pointer :Message.rwNM.Slice.t->Message.rwNM.ListStorage.t->unit
valinit_list_pointer :Message.rwNM.Slice.t->Message.rwNM.ListStorage.t->unit
valinit_normal_struct_pointer :Message.rwNM.Slice.t->``('cap,'a)``NM.StructStorage.t->unit
valinit_struct_pointer :Message.rwNM.Slice.t->``(Message.rw,'a)``NM.StructStorage.t->unit
valshallow_copy_pointer : ``src:Message.rwNM.Slice.t->``dest:Message.rwNM.Slice.t->unit
valshallow_copy_struct : ``src:``(Message.rw,'a)``NM.StructStorage.t->``dest:``(Message.rw,'b)``NM.StructStorage.t->unit
valupgrade_struct_list :Message.rwNM.Slice.t->Message.rwNM.ListStorage.t->``data_words:int->``pointer_words:int->Message.rwNM.ListStorage.t
valderef_list_pointer : ``?struct_sizes:Capnp__BuilderOps.StructSizes.t->``create_default:``(Message.rwNM.Message.t->Message.rwNM.ListStorage.t)``->Message.rwNM.Slice.t->Message.rwNM.ListStorage.t
valshallow_zero_out_struct : ``(Message.rw,'a)``NM.StructStorage.t->unit
valupgrade_struct :Message.rwNM.Slice.t->``(Message.rw,'a)``NM.StructStorage.t->``data_words:int->``pointer_words:int->``(Message.rw,'a)``NM.StructStorage.t
valderef_struct_pointer : ``create_default: ``(Message.rwNM.Message.t->``(Message.rw,'a)``NM.StructStorage.t)``->``data_words:int->``pointer_words:int->Message.rwNM.Slice.t->``(Message.rw,'a)``NM.StructStorage.t
valdeep_copy_pointer : ``src:'capROM.Slice.t->``dest:Message.rwNM.Slice.t->unit
valdeep_copy_struct : ``src:``('cap,'a)``ROM.StructStorage.t->``dest_message:Message.rwNM.Message.t->``data_words:int->``pointer_words:int->``(Message.rw,'b)``NM.StructStorage.t
valdeep_copy_struct_to_dest : ``src:``('cap,'a)``ROM.StructStorage.t->``dest:``(Message.rw,'b)``RWC.StructStorage.t->unit
valdeep_copy_list : ``?struct_sizes:Capnp__BuilderOps.StructSizes.t->``src:'capROM.ListStorage.t->``dest_message:Message.rwNM.Message.t->``unit->Message.rwNM.ListStorage.t
valdeep_copy_struct_list : ``src:'capROM.ListStorage.t->``dest_message:Message.rwNM.Message.t->``data_words:int->``pointer_words:int->Message.rwNM.ListStorage.t
valdeep_zero_pointer :Message.rwNM.Slice.t->unit
valdeep_zero_list :Message.rwNM.ListStorage.t->unit
valdeep_zero_struct : ``(Message.rw,'a)``NM.StructStorage.t->unit
