@@ -403,7 +403,39 @@ using Byter;
403403 byte [] secreat = new byte [] { ... };
404404 string secreatWord = secreat .GetString (Encoding .UTF32 );
405405 ```
406-
406+ - Concat bytes (byte [])
407+ ```csharp
408+ byte [] part1 = [ 1, 1, 1 ];
409+ byte [] part2 = [ 4, 4, 4 ];
410+
411+ /*
412+ .. .. .. .. .. .. .. .. .. ..
413+
414+ Concat part1 and part2
415+
416+ .. .. .. .. .. .. .. .. .. ..
417+
418+ --- `byte[].Concat` Used concat bytes normally.
419+ --- `byte[].ConcatInverse` Used concat bytes inversed (first is last and last is first).
420+ --- `byte[].Concat(invert: true|false, ....)` Generic way to concat `Inversed` and `Normal` direction.
421+
422+ .. .. .. .. .. .. .. .. .. ..
423+ */
424+
425+
426+ // Normal >>>
427+ byte [] normal = part1 .Concat (part2 ); // ... [ 1, 1, 1, 4, 4, 4 ]
428+ byte [] normal = part2 .Concat (invert : true , part1 ); // ... [ 1, 1, 1, 4, 4, 4 ]
429+ byte [] normal = byte [].Concat (invert : true , part2 , part1 ); // ... [ 1, 1, 1, 4, 4, 4 ]
430+ byte [] normal = byte [].Concat (invert : false , part1 , part2 ); // ... [ 1, 1, 1, 4, 4, 4 ]
431+
432+ // Inversed <<<
433+ byte [] inversed = part1 .ConcatInverse (part2 ); // ... [ 4, 4, 4, 1, 1, 1 ]
434+ byte [] inversed = part2 .Concat (invert : false , part1 ); // ... [ 4, 4, 4, 1, 1, 1 ]
435+ byte [] inversed = byte [].Concat (invert : false , part2 , part1 ); // ... [ 4, 4, 4, 1, 1, 1 ]
436+ byte [] inversed = byte [].Concat (invert : true , part1 , part2 ); // ... [ 4, 4, 4, 1, 1, 1 ]
437+ ```
438+
407439- Capitalize string
408440 ```rb
409441 string name = "alECio furanZE ".ToCapitalize ();
0 commit comments