@@ -151,7 +151,7 @@ public static class BoardControllerLibrary64
151151 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
152152 public static extern int log_message_board_controller ( int log_level , string message ) ;
153153 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
154- public static extern int config_board ( string config , byte [ ] response , int [ ] len , int board_id , string input_json ) ;
154+ public static extern int config_board ( string config , byte [ ] response , int [ ] len , int max_len , int board_id , string input_json ) ;
155155 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
156156 public static extern int config_board_with_bytes ( byte [ ] bytes , int len , int board_id , string input_json ) ;
157157 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
@@ -195,19 +195,19 @@ public static class BoardControllerLibrary64
195195 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
196196 public static extern int is_prepared ( int [ ] prepared , int board_id , string input_json ) ;
197197 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
198- public static extern int get_eeg_names ( int board_id , int preset , byte [ ] eeg_names , int [ ] len ) ;
198+ public static extern int get_eeg_names ( int board_id , int preset , byte [ ] eeg_names , int [ ] len , int max_len ) ;
199199 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
200200 public static extern int get_resistance_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
201201 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
202202 public static extern int get_magnetometer_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
203203 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
204204 public static extern int get_exg_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
205205 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
206- public static extern int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len ) ;
206+ public static extern int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len , int max_len ) ;
207207 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
208208 public static extern int insert_marker ( double value , int preset , int board_id , string input_json ) ;
209209 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
210- public static extern int get_board_descr ( int board_id , int preset , byte [ ] board_descr , int [ ] len ) ;
210+ public static extern int get_board_descr ( int board_id , int preset , byte [ ] board_descr , int [ ] len , int max_len ) ;
211211 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
212212 public static extern int release_all_sessions ( ) ;
213213 [ DllImport ( "BoardController" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
@@ -241,7 +241,7 @@ public static class BoardControllerLibrary32
241241 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
242242 public static extern int log_message_board_controller ( int log_level , string message ) ;
243243 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
244- public static extern int config_board ( string config , byte [ ] response , int [ ] len , int board_id , string input_json ) ;
244+ public static extern int config_board ( string config , byte [ ] response , int [ ] len , int max_len , int board_id , string input_json ) ;
245245 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
246246 public static extern int config_board_with_bytes ( byte [ ] bytes , int len , int board_id , string input_json ) ;
247247 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
@@ -285,17 +285,17 @@ public static class BoardControllerLibrary32
285285 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
286286 public static extern int is_prepared ( int [ ] prepared , int board_id , string input_json ) ;
287287 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
288- public static extern int get_eeg_names ( int board_id , int preset , byte [ ] eeg_names , int [ ] len ) ;
288+ public static extern int get_eeg_names ( int board_id , int preset , byte [ ] eeg_names , int [ ] len , int max_len ) ;
289289 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
290290 public static extern int get_resistance_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
291291 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
292292 public static extern int get_exg_channels ( int board_id , int preset , int [ ] channels , int [ ] len ) ;
293293 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
294- public static extern int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len ) ;
294+ public static extern int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len , int max_len ) ;
295295 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
296296 public static extern int insert_marker ( double value , int preset , int board_id , string input_json ) ;
297297 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
298- public static extern int get_board_descr ( int board_id , int preset , byte [ ] board_descr , int [ ] len ) ;
298+ public static extern int get_board_descr ( int board_id , int preset , byte [ ] board_descr , int [ ] len , int max_len ) ;
299299 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
300300 public static extern int release_all_sessions ( ) ;
301301 [ DllImport ( "BoardController32" , SetLastError = true , CallingConvention = CallingConvention . Cdecl ) ]
@@ -457,14 +457,14 @@ public static int insert_marker (double value, int preset, int board_id, string
457457 }
458458
459459
460- public static int config_board ( string config , byte [ ] str , int [ ] len , int board_id , string input_json )
460+ public static int config_board ( string config , byte [ ] str , int [ ] len , int max_len , int board_id , string input_json )
461461 {
462462 switch ( PlatformHelper . get_library_environment ( ) )
463463 {
464464 case LibraryEnvironment . x64 :
465- return BoardControllerLibrary64 . config_board ( config , str , len , board_id , input_json ) ;
465+ return BoardControllerLibrary64 . config_board ( config , str , len , max_len , board_id , input_json ) ;
466466 case LibraryEnvironment . x86 :
467- return BoardControllerLibrary32 . config_board ( config , str , len , board_id , input_json ) ;
467+ return BoardControllerLibrary32 . config_board ( config , str , len , max_len , board_id , input_json ) ;
468468 }
469469
470470 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
@@ -600,14 +600,14 @@ public static int get_marker_channel (int board_id, int preset, int[] marker_cha
600600 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
601601 }
602602
603- public static int get_eeg_names ( int board_id , int preset , byte [ ] names , int [ ] len )
603+ public static int get_eeg_names ( int board_id , int preset , byte [ ] names , int [ ] len , int max_len )
604604 {
605605 switch ( PlatformHelper . get_library_environment ( ) )
606606 {
607607 case LibraryEnvironment . x64 :
608- return BoardControllerLibrary64 . get_eeg_names ( board_id , preset , names , len ) ;
608+ return BoardControllerLibrary64 . get_eeg_names ( board_id , preset , names , len , max_len ) ;
609609 case LibraryEnvironment . x86 :
610- return BoardControllerLibrary32 . get_eeg_names ( board_id , preset , names , len ) ;
610+ return BoardControllerLibrary32 . get_eeg_names ( board_id , preset , names , len , max_len ) ;
611611 }
612612
613613 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
@@ -626,27 +626,27 @@ public static int get_board_presets (int board_id, int[] names, int[] len)
626626 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
627627 }
628628
629- public static int get_board_descr ( int board_id , int preset , byte [ ] descr , int [ ] len )
629+ public static int get_board_descr ( int board_id , int preset , byte [ ] descr , int [ ] len , int max_len )
630630 {
631631 switch ( PlatformHelper . get_library_environment ( ) )
632632 {
633633 case LibraryEnvironment . x64 :
634- return BoardControllerLibrary64 . get_board_descr ( board_id , preset , descr , len ) ;
634+ return BoardControllerLibrary64 . get_board_descr ( board_id , preset , descr , len , max_len ) ;
635635 case LibraryEnvironment . x86 :
636- return BoardControllerLibrary32 . get_board_descr ( board_id , preset , descr , len ) ;
636+ return BoardControllerLibrary32 . get_board_descr ( board_id , preset , descr , len , max_len ) ;
637637 }
638638
639639 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
640640 }
641641
642- public static int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len )
642+ public static int get_device_name ( int board_id , int preset , byte [ ] name , int [ ] len , int max_len )
643643 {
644644 switch ( PlatformHelper . get_library_environment ( ) )
645645 {
646646 case LibraryEnvironment . x64 :
647- return BoardControllerLibrary64 . get_device_name ( board_id , preset , name , len ) ;
647+ return BoardControllerLibrary64 . get_device_name ( board_id , preset , name , len , max_len ) ;
648648 case LibraryEnvironment . x86 :
649- return BoardControllerLibrary32 . get_device_name ( board_id , preset , name , len ) ;
649+ return BoardControllerLibrary32 . get_device_name ( board_id , preset , name , len , max_len ) ;
650650 }
651651
652652 return ( int ) BrainFlowExitCodes . GENERAL_ERROR ;
0 commit comments