@aj-shadow/actorjs-documentation-text 0.0.0-aj-beta.221
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.gitattributes +26 -0
- package/Documentation/Document-global-Be-100-more-efficient.txt +31 -0
- package/Documentation/Document-global-actorjs-trigger-mock-and-intercept-anything.txt +21 -0
- package/Documentation/Document-global-advanced-visualization.txt +28 -0
- package/Documentation/Document-global-debugging.txt +4 -0
- package/Documentation/Document-global-divide-and-reuse.txt +37 -0
- package/Documentation/Document-global-general-separation.txt +2 -0
- package/Documentation/Document-global-markup-anchor.txt +6 -0
- package/Documentation/Document-global-markup-api-status.txt +39 -0
- package/Documentation/Document-global-markup-chart-line.txt +18 -0
- package/Documentation/Document-global-markup-documentation-status.txt +39 -0
- package/Documentation/Document-global-markup-documentation.txt +72 -0
- package/Documentation/Document-global-markup-embed.txt +6 -0
- package/Documentation/Document-global-markup-flowchart.txt +88 -0
- package/Documentation/Document-global-markup-html.txt +122 -0
- package/Documentation/Document-global-markup-ie.txt +18 -0
- package/Documentation/Document-global-markup-image.txt +55 -0
- package/Documentation/Document-global-markup-lab.txt +63 -0
- package/Documentation/Document-global-markup-markup.txt +21 -0
- package/Documentation/Document-global-markup-navigation.txt +25 -0
- package/Documentation/Document-global-markup-node-diagram.txt +163 -0
- package/Documentation/Document-global-markup-note.txt +6 -0
- package/Documentation/Document-global-markup-ref.txt +6 -0
- package/Documentation/Document-global-markup-sequence-diagram.txt +215 -0
- package/Documentation/Document-global-markup-state-machine.txt +121 -0
- package/Documentation/Document-global-markup-table.txt +34 -0
- package/Documentation/Document-global-navigation-pane.txt +3 -0
- package/Documentation/Document-global-navigation.txt +2 -0
- package/Documentation/Document-global-specialized-javascript-editors.txt +2 -0
- package/Documentation/Document-global-stacks-connection.txt +2 -0
- package/Documentation/Document-global-stacks-server.txt +2 -0
- package/Documentation/Document-global-test-environment-overview.txt +15 -0
- package/Documentation/Document-global-the-architecture.txt +51 -0
- package/Documentation/Document-global-the-development-environment.txt +5 -0
- package/Documentation/Document-global-the-test-environment.txt +15 -0
- package/Documentation/Document-global-think-ahead.txt +35 -0
- package/Documentation/Document-global-thinking-in-actors-unlimited.txt +1 -0
- package/Documentation/Document-global-what-is-a-stack.txt +2 -0
- package/Documentation/Document-global-why-actorjs.txt +52 -0
- package/Documentation/Document-global-why-actors-unlimited.txt +182 -0
- package/Documentation/Document-global-x-test-case-tool.txt +2 -0
- package/Documentation/Navigation-Documentation-actorjs-global.txt +372 -0
- package/Documentation/Navigation-Documentation-actorsite-global.txt +363 -0
- package/Documentation/abstractions/Document-global-addressing.txt +81 -0
- package/Documentation/abstractions/Document-global-configuration-floor.txt +2 -0
- package/Documentation/abstractions/Document-global-content.txt +3 -0
- package/Documentation/abstractions/Document-global-functions-test.txt +4 -0
- package/Documentation/abstractions/Document-global-functions-unde-test.txt +2 -0
- package/Documentation/abstractions/Document-global-load-test.txt +3 -0
- package/Documentation/abstractions/Document-global-repo.txt +79 -0
- package/Documentation/abstractions/Document-global-shared-data.txt +5 -0
- package/Documentation/abstractions/Document-global-system-to-test.txt +2 -0
- package/Documentation/abstractions/Document-global-system-under-test.txt +3 -0
- package/Documentation/abstractions/Document-global-test-data.txt +251 -0
- package/Documentation/abstractions/Document-global-test-suite.txt +37 -0
- package/Documentation/abstractions/Document-global-verification-data.txt +103 -0
- package/Documentation/abstractions/actor/Document-global-actor-condition.txt +74 -0
- package/Documentation/abstractions/actor/Document-global-actor-local.txt +44 -0
- package/Documentation/abstractions/actor/Document-global-actor-originating.txt +100 -0
- package/Documentation/abstractions/actor/Document-global-actor-proxy.txt +119 -0
- package/Documentation/abstractions/actor/Document-global-actor-terminating.txt +101 -0
- package/Documentation/abstractions/actor/Document-global-actor.txt +90 -0
- package/Documentation/abstractions/actor/Document-global-execution-states.txt +21 -0
- package/Documentation/abstractions/actorpart/Document-global-actorpart.txt +2 -0
- package/Documentation/abstractions/stack/Document-global-client-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-decoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-encoder.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-message.txt +4 -0
- package/Documentation/abstractions/stack/Document-global-server-connection.txt +3 -0
- package/Documentation/abstractions/stack/Document-global-stack.txt +12 -0
- package/Documentation/abstractions/stack/Document-global-worker.txt +3 -0
- package/Documentation/abstractions/test-case/Document-global-phases.txt +30 -0
- package/Documentation/abstractions/test-case/Document-global-test-case-result.txt +23 -0
- package/Documentation/abstractions/test-case/Document-global-test-case.txt +199 -0
- package/Documentation/actor-api/Document-global-actor-part.txt +7 -0
- package/Documentation/actor-api/Document-global-actor.txt +375 -0
- package/Documentation/actor-api/Document-global-async.txt +176 -0
- package/Documentation/actor-api/Document-global-client-stack.txt +215 -0
- package/Documentation/actor-api/Document-global-content.txt +106 -0
- package/Documentation/actor-api/Document-global-logger.txt +426 -0
- package/Documentation/actor-api/Document-global-process.txt +7 -0
- package/Documentation/actor-api/Document-global-server-stack.txt +213 -0
- package/Documentation/actor-api/Document-global-shared-data.txt +259 -0
- package/Documentation/actor-api/Document-global-test-data.txt +816 -0
- package/Documentation/actor-api/Document-global-timer.txt +70 -0
- package/Documentation/actor-api/Document-global-verification-data.txt +624 -0
- package/Documentation/connection-worker-api/Document-global-logger.txt +3 -0
- package/Documentation/documentation-references.json +199 -0
- package/Documentation/embedded/Document-global-test-case-result.txt +10 -0
- package/Documentation/howto/Document-global-create-actor.txt +1 -0
- package/Documentation/howto/Document-global-create-stack.txt +1 -0
- package/Documentation/howto/Document-global-create-test-case.txt +1 -0
- package/Documentation/howto/Document-global-create-test-suite.txt +1 -0
- package/Documentation/howto/Document-global-define-addresses.txt +1 -0
- package/Documentation/howto/Document-global-define-fut.txt +1 -0
- package/Documentation/howto/Document-global-define-sut.txt +16 -0
- package/Documentation/howto/Document-global-full-workflow.txt +143 -0
- package/Documentation/howto/Document-global-normal-workflow.txt +58 -0
- package/Documentation/howto/Document-global-prerequisites.txt +8 -0
- package/Documentation/howto/prerequisites/Document-global-install-actorjs.txt +64 -0
- package/Documentation/howto/prerequisites/Document-global-install-git.txt +26 -0
- package/Documentation/howto/prerequisites/Document-global-install-nodejs.txt +19 -0
- package/Documentation/markup/Document-global-markup-test-case.txt +6 -0
- package/Documentation/markup/Document-global-markup-test-suite.txt +13 -0
- package/Documentation/markup/embed/Document-global-inner_markup_tc.txt +164 -0
- package/Documentation/nodejs-api/Document-global-fs.txt +7 -0
- package/Documentation/stack-api/Document-global-ascii-dictionary.txt +108 -0
- package/Documentation/stack-api/Document-global-binary-log.txt +91 -0
- package/Documentation/stack-api/Document-global-bit-byte.txt +80 -0
- package/Documentation/stack-api/Document-global-content-base.txt +169 -0
- package/Documentation/stack-api/Document-global-ip-log.txt +101 -0
- package/Documentation/stack-api/Document-global-log-inner.txt +152 -0
- package/Documentation/stack-api/Document-global-log-part-error.txt +12 -0
- package/Documentation/stack-api/Document-global-log-part-ref.txt +80 -0
- package/Documentation/stack-api/Document-global-log-part-text.txt +81 -0
- package/Documentation/tools/Document-global-actors.txt +196 -0
- package/Documentation/tools/Document-global-addressing.txt +38 -0
- package/Documentation/tools/Document-global-content.txt +1 -0
- package/Documentation/tools/Document-global-global-test-data.txt +197 -0
- package/Documentation/tools/Document-global-stacks.txt +1 -0
- package/Documentation/tools/Document-global-test-case-analyze.txt +3 -0
- package/Documentation/tools/Document-global-test-case-debug.txt +16 -0
- package/Documentation/tools/Document-global-test-case-definition.txt +37 -0
- package/Documentation/tools/Document-global-test-case-execution.txt +28 -0
- package/Documentation/tools/Document-global-test-case-log.txt +95 -0
- package/Documentation/tools/Document-global-test-case-sequence-diagram.txt +17 -0
- package/Documentation/tools/Document-global-test-case-specification.txt +3 -0
- package/Documentation/tools/Document-global-test-cases.txt +11 -0
- package/Documentation/tools/Document-global-tool-test-suite.txt +202 -0
- package/Education/Document-global-add-your-first-addresses.txt +75 -0
- package/Education/Document-global-define-your-first-sut.txt +18 -0
- package/Education/Document-global-make-your-first-actors.txt +35 -0
- package/Education/Document-global-make-your-first-test-case.txt +43 -0
- package/Education/Document-global-make-your-first-test-suite.txt +29 -0
- package/Education/Document-global-share-your-work.txt +35 -0
- package/Education/Navigation-Education-actorjs-global.txt +31 -0
- package/LICENSE.txt +96 -0
- package/README.md +5 -0
- package/Workshop/Document-global-actordemo-image-ai.txt +5 -0
- package/Workshop/Document-global-actordemo-login.txt +10 -0
- package/Workshop/Document-global-actordemo-site.txt +3 -0
- package/Workshop/Document-global-actordemo-start.txt +5 -0
- package/Workshop/Document-global-actordemo-the-architecture.txt +27 -0
- package/Workshop/Document-global-introduction-actor.txt +84 -0
- package/Workshop/Document-global-introduction-actorjs.txt +42 -0
- package/Workshop/Document-global-introduction-stack.txt +25 -0
- package/Workshop/Document-global-introduction-system-under-test.txt +102 -0
- package/Workshop/Document-global-introduction-test-case.txt +50 -0
- package/Workshop/Document-global-introduction-test-suite.txt +31 -0
- package/Workshop/Document-global-login-with-puppeter.txt +45 -0
- package/Workshop/Document-global-mock-with-http.txt +83 -0
- package/Workshop/Document-global-mock-with-icap.txt +94 -0
- package/Workshop/Document-global-prerequisites-actorJs.txt +18 -0
- package/Workshop/Document-global-prerequisites-actordemo.txt +15 -0
- package/Workshop/Document-global-trigger-with-http.txt +93 -0
- package/Workshop/Document-global-trigger-with-puppeter.txt +49 -0
- package/Workshop/Navigation-Workshop-actorjs-global.txt +86 -0
- package/npm-shrinkwrap.json +13 -0
- package/package.json +10 -0
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# **Markup - Test Suite**
|
|
2
|
+
[[DOC-STATUS=PARTLY, ]]
|
|
3
|
+
|
|
4
|
+
Test Suite Markup defines a [Test Suite](test-suites) and it provides the documentation with test suite images.
|
|
5
|
+
|
|
6
|
+
```ts
|
|
7
|
+
|TestSuiteAbstraction |
|
|
8
|
+
|name |execution|iterations|
|
|
9
|
+
|tc.ImageService.Image.ImagePng-1 | | |
|
|
10
|
+
|tc.ImageService.Image.ImagePng-2 | | |
|
|
11
|
+
|tc.ImageService.Image.ImagePng-2-Denmark| | |
|
|
12
|
+
| | | |
|
|
13
|
+
```
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
[[ANCHOR={"id":"7c3d5bab-2152-4273-9377-cca6ee528f56","visible":true}]]
|
|
2
|
+
[[NOTE={"guid":"b6bb056c-9776-4157-94c4-1b86ab08b92e"}]]
|
|
3
|
+
### **Example**
|
|
4
|
+
Here is a simple example. The Orig client will get an image from the Term server with the http protocol.
|
|
5
|
+
```seq
|
|
6
|
+
Nodes[Orig, Term]
|
|
7
|
+
Orig => Term[http]: Get /image
|
|
8
|
+
Term => Orig[http]: 200 Ok
|
|
9
|
+
```
|
|
10
|
+
In the Actor table the [[REF=, ABS_Actor]]s to be used are defined. How they are executed and in which phase they will be executed in are defined. The [[REF=, ABS_Addressing_Address]]es are also chosen and some [[REF=, ABS_Test_Data]] might be set.
|
|
11
|
+
```tc
|
|
12
|
+
|Actor |
|
|
13
|
+
|name |node|type|phase|execution|src |dst |srv |testData|verification|
|
|
14
|
+
|Actors-global.stack.stacks.http.HttpGetOkOrig| |orig|exec | |testSrc1|testSrv1| | | |
|
|
15
|
+
|Actors-global.stack.stacks.http.HttpGetOkTerm| |term|exec | | | |testSrv1| | |
|
|
16
|
+
| | | | | | | | | | |
|
|
17
|
+
|
|
18
|
+
|TestDataTestCase |
|
|
19
|
+
|key |value |description|
|
|
20
|
+
|content-name|pettersson| |
|
|
21
|
+
| | | |
|
|
22
|
+
|
|
23
|
+
|VerificationTestCase |
|
|
24
|
+
|key |value |operation|type|description|
|
|
25
|
+
|content-name|pettersson| | | |
|
|
26
|
+
| | | | | |
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## **Markup Tables**
|
|
30
|
+
[TestCaseSettings](#TestCaseSettings)
|
|
31
|
+
[Actor](#Actor)
|
|
32
|
+
[TestDataTestCase](#TestDataTestCase)
|
|
33
|
+
[VerificationTestCase](#VerificationTestCase)
|
|
34
|
+
|
|
35
|
+
[[ANCHOR={"id":"TestCaseSettings","visible":true}]]
|
|
36
|
+
[[NOTE={"guid":"e14aa0e0-cf69-4e3a-94e2-781d587d0d7f"}]]
|
|
37
|
+
### **Table TestCaseSettings**
|
|
38
|
+
The TestCaseSettings table makes it possible to verify different results from the tool.
|
|
39
|
+
```tc
|
|
40
|
+
|TestCaseSettings |
|
|
41
|
+
|preResult|execResult|postResult|
|
|
42
|
+
|error |failure |success |
|
|
43
|
+
| | | |
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
```table
|
|
47
|
+
Config(classHeading: )
|
|
48
|
+
|
|
49
|
+
|Parameters |
|
|
50
|
+
|Name |Type |
|
|
51
|
+
|preResult |The expected result of the pre-condition phase of the [[REF=, ABS_Test_Case]]. |
|
|
52
|
+
|execResult|The expected result of the execution phase of the [[REF=, ABS_Test_Case]]. |
|
|
53
|
+
|postResult|The expected result of the post-condition phase of the [[REF=, ABS_Test_Case]].|
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
#### **Possible values in the table**
|
|
57
|
+
[[EMBED=abstractions/test-case/test-case-result]]
|
|
58
|
+
|
|
59
|
+
**note:** this table *should never* be used when building normal [[REF=, ABS_Test_Case]]s. A real [[REF=, ABS_Test_Case]] must always expect [[RESULT=success]] to succeed. If a real [[REF=, ABS_Test_Case]] tests an error code it must verify that it gets the correct error code and then the result of the [[REF=, ABS_Test_Case]] will be [[RESULT=success]].
|
|
60
|
+
|
|
61
|
+
[[ANCHOR={"id":"Actor","visible":true}]]
|
|
62
|
+
[[NOTE={"guid":"c1f0fba0-8226-4a07-9e99-04c241fd229d"}]]
|
|
63
|
+
### **Table Actor**
|
|
64
|
+
The Actor table defines which [[REF=, ABS_Actor]]s to use and when they are executed. The [[REF=Addresses, ABS_Addressing]] to use and [[REF=, ABS_Actor]] specific [[REF=, ABS_Test_Data]].
|
|
65
|
+
```tc
|
|
66
|
+
|Actor |
|
|
67
|
+
|name |node|type|phase|execution|src |dst |srv |testData|verification|
|
|
68
|
+
|Actors-global.stack.stacks.http.HttpGetOkOrig| |orig|exec | |testSrc1|testSrv1| | | |
|
|
69
|
+
|Actors-global.stack.stacks.http.HttpGetOkTerm| |term|exec | | | |testSrv1| | |
|
|
70
|
+
| | | | | | | | | | |
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
```table
|
|
75
|
+
Config(classHeading: )
|
|
76
|
+
|
|
77
|
+
|Parameters |
|
|
78
|
+
|Name |Type |Default |Description |
|
|
79
|
+
|name |[[REF=,MDN_string]] | |The markup name of the [[REF=,ABS_Actor]]. |
|
|
80
|
+
|type |<**enum**> | |The type of [[REF=,ABS_Actor]]; [[REF=,ABS_Actor_orig]] | [[REF=,ABS_Actor_term]] | [[REF=,ABS_Actor_proxy]] | [[REF=,ABS_Actor_local]] | [[REF=,ABS_Actor_cond]]. |
|
|
81
|
+
|phase |<**enum**> |[[REF=,ABS_Actor_cond]] == type ? [[REF=,ABS_Actor_Phase_pre_post]] : [[REF=,ABS_Actor_Phase_exec]]|The [[REF=,ABS_Actor_Phase]] the [[REF=,ABS_Actor]] will run in; [[REF=,ABS_Actor_Phase_pre]] | [[REF=,ABS_Actor_Phase_exec]] | [[REF=,ABS_Actor_Phase_post]]. **special case**: an [[REF=,ABS_Actor_Condition]] will be executed in both the [[REF=,ABS_Actor_Phase_Precondition]] and the [[REF=,ABS_Actor_Phase_Postcondition]]; [[REF=,ABS_Actor_Phase_pre_post]]. |
|
|
82
|
+
|execution |<**enum**> | |The start dependencies between [[REF=,ABS_Actor]]s. [[REF=,ABS_Actor_Execution_serial]] | [[REF=,ABS_Actor_Execution_parallel]] | [[REF=,ABS_Actor_Execution_dependency]].<br>[[REF=,ABS_Actor_Execution_serial]]: The [[REF=,ABS_Actor]] will be executed after the previous [[REF=,ABS_Actor]] has finished. <br>[[REF=,ABS_Actor_Execution_parallel]]: The [[REF=,ABS_Actor]] will be executed at the same time as the previous [[REF=,ABS_Actor]].<br>[[REF=,ABS_Actor_Execution_dependency]]: ***`Not Implemented`*** The [[REF=,ABS_Actor]] will be executed when the dependency [[REF=,ABS_Actor]]s have finished.|
|
|
83
|
+
|src |[[REF=,MDN_string]] | [[REF=,MDN_strings]] | |Then name or names of the [[REF=, TOOL_Addressing_Src]]es to us by the [[REF=,ABS_Actor]].<br /> * If **src** is a [[REF=,MDN_string]] the [[REF=,ABS_Actor]] can access that address.<br /> * If **src** is an [[REF=,MDN_strings]] the [[REF=,ABS_Actor]] can access several addresses by using the the connection option **srcIndex**, see [[REF=,API_Actor_Client_Stack_Create_Connection]] in the [[REF=,API_Actor_Client_Stack]]. |
|
|
84
|
+
|dst |[[REF=,MDN_string]] | [[REF=,MDN_strings]]<br />[ [[REF=,MDN_string]] | [ [[REF=,MDN_string]], [[REF=,MDN_string]] ] ] | |Then name or names of the [[REF=, TOOL_Addressing_Dst]]es to us by the [[REF=,ABS_Actor]].<br /> * If **dst** is a [[REF=,MDN_string]] the [[REF=,ABS_Actor]] can access that address.<br />* If **dst** is an [[REF=,MDN_strings]] or an [ [[REF=,MDN_string]] |  [ [[REF=,MDN_string]], [[REF=,MDN_string]] ] ] the [[REF=,ABS_Actor]] can access several addresses by using the the connection option **dstIndex**, see [[REF=,API_Actor_Client_Stack_Create_Connection]] in the [[REF=,API_Actor_Client_Stack]].<br /> * If **dst** is an [ [[REF=,MDN_string]] | [ [[REF=,MDN_string]], [[REF=,MDN_string]] ] the Array with two strings is used when the address is an uri which connects to a proxy.<br />    * **First address** is a **gui** address containing the **uri**. If the second parameter is missing, the **uri** will be used for a **DNS** lookup to decide where to connect.<br />    * **Second address** is an **ip** address containing the proxy address, which to connect to. |
|
|
85
|
+
|srv |[[REF=,MDN_string]] | [[REF=,MDN_strings]] | |Then name or names of the [[REF=, TOOL_Addressing_Srv]]es to us by the [[REF=,ABS_Actor]]. |
|
|
86
|
+
|testData |[[[[REF=,MDN_string]], ***value***, [[REF=,MDN_string]]], ..., []]<br />***value***: [[REF=,MDN_string]] | [[REF=,MDN_strings]] | [[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]] | [[REF=,MDN_numbers]] | [[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]] | [[REF=,MDN_booleans]] | [[REF=,MDN_arraybooleans]]| |An outer [[REF=,MDN_Array]] with inner [[REF=,MDN_Array]]s containing [[REF=,ABS_Test_Data]]. The inner [[REF=,MDN_Array]]s contains two or three parameters.<br /> The first parameter is the ***key*** and is **Mandatory**.<br /> The second parameter is the ***value*** and is **Mandatory**.<br /> The third parameter is the ***description*** and it is ***Optional***. |
|
|
87
|
+
|verification|[[REF=,MDN_string]] | [[REF=,MDN_strings]] | [[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]] | [[REF=,MDN_numbers]] | [[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]] | [[REF=,MDN_booleans]] | [[REF=,MDN_arraybooleans]] | |`Not documented yet.` |
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
[[ANCHOR={"id":"e77ad2af-36dc-416e-aa29-6ebab24a9904","visible":true}]]
|
|
91
|
+
[[NOTE={"guid":"489f1f11-c39c-43b6-9955-7b184118baa0"}]]
|
|
92
|
+
### **Table TestDataTestCase**
|
|
93
|
+
The TestDataTestCase table defines [[REF=, ABS_Test_Data]] that are specific for current [[REF=, ABS_Test_Case]]. All [[REF=, ABS_Actor]]s can access the [[REF=, ABS_Test_Data]] defined in the TestDataTestCase table.
|
|
94
|
+
```tc
|
|
95
|
+
|TestDataTestCase |
|
|
96
|
+
|key |value |description |
|
|
97
|
+
|content-name|pettersson|An image of Mr Pettersson|
|
|
98
|
+
|age |33 |The age of Mr Pettersson |
|
|
99
|
+
| | | |
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
```table
|
|
103
|
+
Config(classHeading: )
|
|
104
|
+
|
|
105
|
+
|Parameters |
|
|
106
|
+
|Name |Type |Description |
|
|
107
|
+
|key |[[REF=,MDN_string]] |The ***name*** of the [[REF=, ABS_Test_Data]]. |
|
|
108
|
+
|value |[[REF=,MDN_string]] | [[REF=,MDN_strings]] | [[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]] | [[REF=,MDN_numbers]] | [[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]] | [[REF=,MDN_booleans]] | [[REF=,MDN_arraybooleans]]<br>[[REF=,MDN_object]]|The ***value*** of the [[REF=, ABS_Test_Data]]. |
|
|
109
|
+
|description|[[REF=,MDN_string]] |Optional description of the [[REF=, ABS_Test_Data]].|
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
[[ANCHOR={"id":"6b149b2d-2fae-4576-856a-0349d2542e8f","visible":true}]]
|
|
113
|
+
[[NOTE={"guid":"ba59fe83-7728-46bd-9063-88eedd8a4b10"}]]
|
|
114
|
+
### **Table VerificationTestCase**
|
|
115
|
+
The VerificationTestCase table defines [[REF=, ABS_Verification_Data]] that are specific for current [[REF=, ABS_Test_Case]]. All [[REF=, ABS_Actor]]s can access the [[REF=, ABS_Verification_Data]] defined in the VerificationTestCase table.
|
|
116
|
+
|
|
117
|
+
```tc
|
|
118
|
+
|VerificationTestCase |
|
|
119
|
+
|key |value |operation|type|description|
|
|
120
|
+
|content-name|pettersson| | | |
|
|
121
|
+
| | | | | |
|
|
122
|
+
```
|
|
123
|
+
```table
|
|
124
|
+
Config(classHeading: )
|
|
125
|
+
|
|
126
|
+
|Parameters |
|
|
127
|
+
|Name |Type |Default|Description |
|
|
128
|
+
|key |[[REF=,MDN_string]] | |The ***name*** of the [[REF=, ABS_Verification_Data]]. |
|
|
129
|
+
|value |[[REF=,MDN_string]] | [[REF=,MDN_strings]] | [[REF=,MDN_arraystrings]]<br>[[REF=,MDN_number]] | [[REF=,MDN_numbers]] | [[REF=,MDN_arraynumbers]]<br>[[REF=,MDN_boolean]] | [[REF=,MDN_booleans]] | [[REF=,MDN_arraybooleans]]<br>[[REF=,MDN_object]]| |The ***value*** of the [[REF=, ABS_Verification_Data]]. |
|
|
130
|
+
|operation |=== | !== | =\= | !\= | < | <= | > | >= |=== |The operation to use when verifing the [[REF=, ABS_Verification_Data]].|
|
|
131
|
+
|type | |string |The type of the ***value*** of the [[REF=, ABS_Verification_Data]]. |
|
|
132
|
+
|description|[[REF=,MDN_string]] | |Optional description of the [[REF=, ABS_Verification_Data]]. |
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
<br>
|
|
136
|
+
<br>
|
|
137
|
+
<br>
|
|
138
|
+
<br>
|
|
139
|
+
<br>
|
|
140
|
+
<br>
|
|
141
|
+
<br>
|
|
142
|
+
<br>
|
|
143
|
+
<br>
|
|
144
|
+
<br>
|
|
145
|
+
<br>
|
|
146
|
+
<br>
|
|
147
|
+
<br>
|
|
148
|
+
<br>
|
|
149
|
+
<br>
|
|
150
|
+
<br>
|
|
151
|
+
<br>
|
|
152
|
+
<br>
|
|
153
|
+
<br>
|
|
154
|
+
<br>
|
|
155
|
+
<br>
|
|
156
|
+
<br>
|
|
157
|
+
<br>
|
|
158
|
+
<br>
|
|
159
|
+
<br>
|
|
160
|
+
<br>
|
|
161
|
+
<br>
|
|
162
|
+
<br>
|
|
163
|
+
<br>
|
|
164
|
+
<br>
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# **AsciiDictionary API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=PARTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"18019ed6-865e-411b-b2f3-503b21f8ff35"}]]
|
|
6
|
+
[[ANCHOR={"id":"422737c3-bc67-47e1-bb5d-9e354c538990","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
AsciiDictionary is a helper API to make text more readable.
|
|
9
|
+
|
|
10
|
+
AsciiDictionary API implementation is in [[REF=, CODE_AsciiDictionary]].
|
|
11
|
+
|
|
12
|
+
[[NOTE={"guid":"4527d04b-e157-4435-ae84-89b7ac8436c9"}]]
|
|
13
|
+
[[ANCHOR={"id":"584b54ee-c5bb-4cae-b0e2-34c4402bcdf3","visible":true}]]
|
|
14
|
+
## **API Methods**
|
|
15
|
+
* **[getSymbolString](#stack-api-log-ascii-dictionary-getSymbolString)**
|
|
16
|
+
* **[getSymbol](#stack-api-log-ascii-dictionary-getSymbol)**
|
|
17
|
+
* **[getHtmlName](#stack-api-log-ascii-dictionary-getHtmlName)**
|
|
18
|
+
* **[getDesciption](#stack-api-log-ascii-dictionary-getSymbolString)**
|
|
19
|
+
|
|
20
|
+
***
|
|
21
|
+
[[NOTE={"guid":"866dcdd6-c344-4cc8-9bf3-aa5bf3a8ce5d"}]]
|
|
22
|
+
[[ANCHOR={"id":"stack-api-log-ascii-dictionary-getSymbolString","visible":true}]]
|
|
23
|
+
### **AsciiDictionary.getSymbolString**
|
|
24
|
+
```
|
|
25
|
+
AsciiDictionary.getSymbolString(text);
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
[[NOTE={"guid":"2a42957f-34d7-4aa5-b5b7-5f57e8aa89a6"}]]
|
|
29
|
+
[[ANCHOR={"id":"1dcc8502-7848-46b3-a897-764e00261bbe","visible":true}]]
|
|
30
|
+
#### **Method Description**
|
|
31
|
+
|
|
32
|
+
Converts a text to a readable text. This is done by showing the codes of not visible characters.
|
|
33
|
+
|
|
34
|
+
```table
|
|
35
|
+
Config(classHeading: )
|
|
36
|
+
|
|
37
|
+
|Parameters |
|
|
38
|
+
|Name|Type |Description |
|
|
39
|
+
|text|[[REF=, MDN_string]]|The text to be converted.|
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
```table
|
|
43
|
+
Config(classHeading: )
|
|
44
|
+
|
|
45
|
+
|Returns |
|
|
46
|
+
|Type |Description |
|
|
47
|
+
|[[REF=, MDN_string]]|The resulting text.|
|
|
48
|
+
```
|
|
49
|
+
[[NOTE={"guid":"affe69f1-8ad6-4644-a5a7-f1911cf049b2"}]]
|
|
50
|
+
[[ANCHOR={"id":"83df9526-5fcb-462b-b46a-439c04e743ea","visible":true}]]
|
|
51
|
+
#### **Example using AsciiDictionary.getSymbolString**
|
|
52
|
+
|
|
53
|
+
```javascript
|
|
54
|
+
|
|
55
|
+
const StackApi = require('stack-api');
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
console.log(StackApi.AsciiDictionary.getSymbolString('Hello\r\n')); // Output will be "Hello[CR][LF]"
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[NOTE={"guid":"dda27b31-f35a-4eaa-a313-d306b4f7805a"}]]
|
|
63
|
+
[[ANCHOR={"id":"a0bda67e-84ac-4e0a-9763-c818f61c7cc9","visible":true}]]
|
|
64
|
+
#### **Test Cases AsciiDictionary.getSymbolString**
|
|
65
|
+
|
|
66
|
+
***
|
|
67
|
+
[[NOTE={"guid":"00872d36-92ef-4e5e-80e8-b92e58e703de"}]]
|
|
68
|
+
[[ANCHOR={"id":"stack-api-log-ascii-dictionary-getSymbol","visible":true}]]
|
|
69
|
+
### **AsciiDictionary.getSymbol**
|
|
70
|
+
```
|
|
71
|
+
AsciiDictionary.getSymbol(index);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
[[NOTE={"guid":"c6b22864-8711-4e5b-9415-00290e334977"}]]
|
|
75
|
+
[[ANCHOR={"id":"ae78e1e6-de9b-40bc-a80b-a70b4286de8d","visible":true}]]
|
|
76
|
+
#### **Method Description**
|
|
77
|
+
`Not documented yet`
|
|
78
|
+
|
|
79
|
+
***
|
|
80
|
+
|
|
81
|
+
[[NOTE={"guid":"62bf53ef-721f-4f3f-80c6-4ac625d4831d"}]]
|
|
82
|
+
[[ANCHOR={"id":"stack-api-log-ascii-dictionary-getHtmlName","visible":true}]]
|
|
83
|
+
### **AsciiDictionary.getHtmlName**
|
|
84
|
+
```
|
|
85
|
+
AsciiDictionary.getHtmlName(index);
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
[[NOTE={"guid":"a2f77149-aca5-4452-b487-3edee953d95a"}]]
|
|
89
|
+
[[ANCHOR={"id":"10c2e823-2be2-4ddf-b5b8-313aa82b7af4","visible":true}]]
|
|
90
|
+
#### **Method Description**
|
|
91
|
+
`Not documented yet`
|
|
92
|
+
|
|
93
|
+
***
|
|
94
|
+
|
|
95
|
+
[[NOTE={"guid":"f6352d84-b8f6-4b10-bf9a-50ef8805a8fb"}]]
|
|
96
|
+
[[ANCHOR={"id":"stack-api-log-ascii-dictionary-getSymbolString","visible":true}]]
|
|
97
|
+
### **AsciiDictionary.getDesciption**
|
|
98
|
+
```
|
|
99
|
+
AsciiDictionary.getDesciption(index);
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
[[NOTE={"guid":"95fe09c0-5f37-4f8f-b90c-22291ca6d0aa"}]]
|
|
103
|
+
[[ANCHOR={"id":"5eee1f10-a911-481a-b815-e7809c3bfeb1","visible":true}]]
|
|
104
|
+
#### **Method Description**
|
|
105
|
+
`Not documented yet`
|
|
106
|
+
|
|
107
|
+
***
|
|
108
|
+
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
# **BinaryLog API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=MOSTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"382a5e72-85cb-41f4-a851-fadbc5bdcf8d"}]]
|
|
6
|
+
[[ANCHOR={"id":"083ea94e-5459-48e1-8506-5bfb9d4e6949","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
|
|
9
|
+
BinaryLog API implementation is in [[REF=, CODE_BinaryLog]].
|
|
10
|
+
|
|
11
|
+
[[NOTE={"guid":"d4fe8d85-0252-4e0f-9605-5776301b32d8"}]]
|
|
12
|
+
[[ANCHOR={"id":"ff0941a3-4359-41e3-b43f-f15f14943dfb","visible":true}]]
|
|
13
|
+
## **API Methods**
|
|
14
|
+
* **[static generateLog](#stack-api-binary-log-sgenerateLog)**
|
|
15
|
+
|
|
16
|
+
***
|
|
17
|
+
|
|
18
|
+
[[NOTE={"guid":"c91b573a-8f2d-4c1b-9862-8d974c702dcb"}]]
|
|
19
|
+
[[ANCHOR={"id":"stack-api-binary-log-sgenerateLog","visible":true}]]
|
|
20
|
+
### **static generateLog**
|
|
21
|
+
```
|
|
22
|
+
BinaryLog.generateLog(buffer, ipLogs);
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
[[NOTE={"guid":"7efb8ab0-f873-4e6f-a87f-8b0a1db3ff00"}]]
|
|
26
|
+
[[ANCHOR={"id":"4f22852e-fea8-4622-a958-a9c767c12a35","visible":true}]]
|
|
27
|
+
#### **Method Description**
|
|
28
|
+
|
|
29
|
+
Generates a binary log and a log caption.
|
|
30
|
+
|
|
31
|
+
```table
|
|
32
|
+
Config(classHeading: )
|
|
33
|
+
|
|
34
|
+
|Parameters |
|
|
35
|
+
|Name |Type |Description |
|
|
36
|
+
|buffer|[[REF=,NODEJS_Buffer]] | [[REF=, MDN_string]]|The buffer to be converted to LogInner objects. |
|
|
37
|
+
|ipLogs|[[REF=, MDN_Array]] |An [[REF=, MDN_Array]] to put the resulting LogInner objects into.|
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
```table
|
|
41
|
+
Config(classHeading: )
|
|
42
|
+
|
|
43
|
+
|Returns |
|
|
44
|
+
|Type |Description |
|
|
45
|
+
|[[REF=,MDN_string]]|The generated caption.|
|
|
46
|
+
```
|
|
47
|
+
[[NOTE={"guid":"86a36473-1102-410a-a483-9fe928df9b8d"}]]
|
|
48
|
+
[[ANCHOR={"id":"ad2a4eca-b236-48b7-8bb0-058239501f90","visible":true}]]
|
|
49
|
+
#### **Example using BinaryLog.generateLog**
|
|
50
|
+
|
|
51
|
+
```javascript
|
|
52
|
+
|
|
53
|
+
const StackApi = require('stack-api');
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
*encode() {
|
|
57
|
+
yield* this.send(this.msg);
|
|
58
|
+
if(this.isLogIp) {
|
|
59
|
+
process.nextTick(() => {
|
|
60
|
+
this.caption = StackApi.BinaryLog.generateLog(this.msg, this.ipLogs);
|
|
61
|
+
this.logMessage();
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
```javascript
|
|
69
|
+
|
|
70
|
+
const StackApi = require('stack-api');
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
*decode() {
|
|
74
|
+
const msg = yield* this.receiveSize(this.size);
|
|
75
|
+
if(this.isLogIp) {
|
|
76
|
+
process.nextTick(() => {
|
|
77
|
+
this.caption = StackApi.BinaryLog.generateLog(msg, this.ipLogs);
|
|
78
|
+
this.logMessage();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
return msg;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
[[NOTE={"guid":"0fc4d056-9f74-4d05-8cfc-aad7056251e7"}]]
|
|
87
|
+
[[ANCHOR={"id":"ee6f2ee8-6c70-4d4b-a09b-751bf2ceb386","visible":true}]]
|
|
88
|
+
#### **Test Cases BinaryLog.generateLog**
|
|
89
|
+
+ [DocStackApiBinaryLog](/../test-cases/Actor/Doc/DocStackApiBinaryLog)
|
|
90
|
+
|
|
91
|
+
***
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# **BitByte API**
|
|
2
|
+
[[API-STATUS=STABLE,]]
|
|
3
|
+
[[DOC-STATUS=PARTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"44571f44-f48b-4127-af55-a56c38be14aa"}]]
|
|
6
|
+
[[ANCHOR={"id":"dbcde158-b1ae-4251-a085-2f85d8db44e7","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
The BitByte API is a helper API to make it easy to read and write specific bits of an byte.
|
|
9
|
+
```node
|
|
10
|
+
Config(nodeWidth: 20, nodeHeight: 20, nodeWidthBetween: 5, nodeHeightBetween: 25, widthBias: 10, heightBias: 10)
|
|
11
|
+
|
|
12
|
+
Nodes[0, 1, 2, 3, 4, 5, 6, 7]
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
The bit index is in reversed order as it is when implenting a protocol.
|
|
17
|
+
|
|
18
|
+
BitByte API implementation is in [[REF=, CODE_BitByte]].
|
|
19
|
+
|
|
20
|
+
[[NOTE={"guid":"51ffee39-2093-469d-9a66-9fa6e035b3cf"}]]
|
|
21
|
+
[[ANCHOR={"id":"766a14ad-95d7-4483-ae75-535fb0f8e229","visible":true}]]
|
|
22
|
+
## **API Methods**
|
|
23
|
+
* **[getBit](#stack-api-bit-byte-get-bit)**
|
|
24
|
+
* **[getBits](#stack-api-bit-byte-get-bits)**
|
|
25
|
+
* **[setBit](#stack-api-bit-byte-set-bit)**
|
|
26
|
+
* **[setBits](#stack-api-bit-byte-set-bits)**
|
|
27
|
+
|
|
28
|
+
***
|
|
29
|
+
[[NOTE={"guid":"7c5e1cd3-dbe7-4462-a7a6-685abbf18b8a"}]]
|
|
30
|
+
[[ANCHOR={"id":"stack-api-bit-byte-get-bit","visible":true}]]
|
|
31
|
+
### **BitByte.getBit**
|
|
32
|
+
```
|
|
33
|
+
BitByte.getBit(byte, bit);
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
[[NOTE={"guid":"529367c3-b7f9-43c2-9430-a76b47f0d58f"}]]
|
|
37
|
+
[[ANCHOR={"id":"226499f1-82be-4b03-a141-d0e027af7e5e","visible":true}]]
|
|
38
|
+
#### **Method Description**
|
|
39
|
+
Reads the value of a bit in a byte.
|
|
40
|
+
|
|
41
|
+
***
|
|
42
|
+
[[NOTE={"guid":"25fced41-730f-43e0-8c51-b2248fd73c63"}]]
|
|
43
|
+
[[ANCHOR={"id":"stack-api-bit-byte-get-bits","visible":true}]]
|
|
44
|
+
### **BitByte.getBits**
|
|
45
|
+
```
|
|
46
|
+
BitByte.getBits(byte, bitFrom, bitTo);
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
[[NOTE={"guid":"c344a346-039f-4755-bc10-918eae908f14"}]]
|
|
50
|
+
[[ANCHOR={"id":"399e0736-c70b-4b1b-ae58-3ecdfb53e4cd","visible":true}]]
|
|
51
|
+
#### **Method Description**
|
|
52
|
+
Reads the value of chosen bits in a byte.
|
|
53
|
+
|
|
54
|
+
***
|
|
55
|
+
[[NOTE={"guid":"584a3ed1-f7c8-430e-b4ef-c1082473e34a"}]]
|
|
56
|
+
[[ANCHOR={"id":"stack-api-bit-byte-set-bit","visible":true}]]
|
|
57
|
+
### **BitByte.setBit**
|
|
58
|
+
```
|
|
59
|
+
BitByte.setBit(byte, bit, value = 1);
|
|
60
|
+
```
|
|
61
|
+
|
|
62
|
+
[[NOTE={"guid":"9c4c0b7a-b3c0-4d95-81d3-04e66c7d8da5"}]]
|
|
63
|
+
[[ANCHOR={"id":"42517d88-82ba-446f-9613-e93300bfccfa","visible":true}]]
|
|
64
|
+
#### **Method Description**
|
|
65
|
+
Writes the value of a bit in a byte.
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
[[NOTE={"guid":"cebc2ad7-985d-484b-ad90-7ceeba12137f"}]]
|
|
69
|
+
[[ANCHOR={"id":"stack-api-bit-byte-set-bits","visible":true}]]
|
|
70
|
+
### **BitByte.gesBits**
|
|
71
|
+
```
|
|
72
|
+
BitByte.setBits(byte, bitFrom, bitTo, value);
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
[[NOTE={"guid":"ba78178c-de13-449e-8bba-48b01ad5a81c"}]]
|
|
76
|
+
[[ANCHOR={"id":"7a65e701-8079-4f33-a5cc-84187812fcd2","visible":true}]]
|
|
77
|
+
#### **Method Description**
|
|
78
|
+
Writes the value of chosen bits in a byte.
|
|
79
|
+
|
|
80
|
+
***
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
# **ContentBase API**
|
|
2
|
+
[[API-STATUS=STABLE, ]]
|
|
3
|
+
[[DOC-STATUS=PARTLY, ]]
|
|
4
|
+
|
|
5
|
+
[[NOTE={"guid":"66188066-cbb1-40f5-af32-a9caf2f6319c"}]]
|
|
6
|
+
[[ANCHOR={"id":"5f5b01a6-fdf1-4bcc-a676-7cee02f31e03","visible":true}]]
|
|
7
|
+
## **Description**
|
|
8
|
+
When using [[REF=, ABS_Content]] and/or certain [[REF=, ABS_Stack]]s, you will get data as a ContentBase [[REF=, MDN_object]]. It will help you manipulate and handle the data more efficiently.
|
|
9
|
+
|
|
10
|
+
[[NOTE={"guid":"aeac0a8b-2556-402a-a41f-3c58a48c34c0"}]]
|
|
11
|
+
[[ANCHOR={"id":"92a32d58-7b41-4883-b6ec-4ad68d0a7065","visible":true}]]
|
|
12
|
+
### **Methods**
|
|
13
|
+
* [ContentBase.getBuffer](#content-base-getBuffer)
|
|
14
|
+
* [ContentBase.addBuffer](#content-base-addBuffer)
|
|
15
|
+
* [ContentBase.getLength](#content-base-getLength)
|
|
16
|
+
* [ContentBase.indexOf](#content-base-indexOf)
|
|
17
|
+
* [ContentBase.slice](#content-base-slice)
|
|
18
|
+
* [ContentBase.normalize](#content-base-normalize)
|
|
19
|
+
|
|
20
|
+
***
|
|
21
|
+
|
|
22
|
+
[[NOTE={"guid":"d3a63dc1-b6c1-4145-aec7-039d26ca934f"}]]
|
|
23
|
+
[[ANCHOR={"id":"content-base-getBuffer","visible":true}]]
|
|
24
|
+
### **ContentBase.getBuffer**
|
|
25
|
+
```
|
|
26
|
+
contentBase.getBuffer();
|
|
27
|
+
```
|
|
28
|
+
Gets the next [[REF=, NODEJS_Buffer]] of the [[REF=, ABS_Content]].
|
|
29
|
+
|
|
30
|
+
[[NOTE={"guid":"2d6cb078-12c7-4a01-a070-81ed0861ee83"}]]
|
|
31
|
+
[[ANCHOR={"id":"f1589538-2670-4ac3-972c-be694364efbc","visible":true}]]
|
|
32
|
+
#### **Method Description**
|
|
33
|
+
|
|
34
|
+
Use the [getLength](#content-base-getLength) member function to see the total length of all [[REF=, NODEJS_Buffer]]s. Continue to call this member function until all [[REF=, NODEJS_Buffer]]s are returned. The [[REF=, API_Stack_Content_Base]] object has an internal member that remembers which [[REF=, NODEJS_Buffer]] is the current one. Call the member function [normalize](#content-base-normalize) to reset the current [[REF=, NODEJS_Buffer]] to the first [[REF=, NODEJS_Buffer]].
|
|
35
|
+
|
|
36
|
+
```table
|
|
37
|
+
Config(classHeading: )
|
|
38
|
+
|
|
39
|
+
|Returns |
|
|
40
|
+
|Type |Description |
|
|
41
|
+
|[[REF=,NODEJS_Buffer]]|The resulting ***value***.|
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
***
|
|
45
|
+
|
|
46
|
+
[[NOTE={"guid":"e9b78b61-2026-4830-8a1a-fc371294b690"}]]
|
|
47
|
+
[[ANCHOR={"id":"content-base-addBuffer","visible":true}]]
|
|
48
|
+
### **ContentBase.addBuffer**
|
|
49
|
+
```
|
|
50
|
+
contentBase.addBuffer();
|
|
51
|
+
```
|
|
52
|
+
Add a buffer to the [[REF=, ABS_Content]].
|
|
53
|
+
|
|
54
|
+
[[NOTE={"guid":"6cc03b8a-af45-4855-b4e8-de1f0f8fcd2d"}]]
|
|
55
|
+
[[ANCHOR={"id":"e1b18b45-9541-4d24-b262-4e3c2abbd22b","visible":true}]]
|
|
56
|
+
#### **Method Description**
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
```table
|
|
60
|
+
Config(classHeading: )
|
|
61
|
+
|
|
62
|
+
|Parameters |
|
|
63
|
+
|Name |Type |Description |
|
|
64
|
+
|buffer|[[REF=,NODEJS_Buffer]]|Add a buffer to the [[REF=, ABS_Content]].|
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
***
|
|
68
|
+
|
|
69
|
+
[[NOTE={"guid":"40ced9c4-6652-4739-9c29-5131a99be7fe"}]]
|
|
70
|
+
[[ANCHOR={"id":"content-base-getLength","visible":true}]]
|
|
71
|
+
### **ContentBase.getLength**
|
|
72
|
+
```
|
|
73
|
+
contentBase.getLength();
|
|
74
|
+
```
|
|
75
|
+
Retrieves the total length of all [[REF=, NODEJS_Buffer]]s of the [[REF=, ABS_Content]].
|
|
76
|
+
|
|
77
|
+
[[NOTE={"guid":"86e65b6f-465f-4722-9405-3ec7d0ea3ec4"}]]
|
|
78
|
+
[[ANCHOR={"id":"5bf11d7a-9f70-4c01-8878-9a412fe87197","visible":true}]]
|
|
79
|
+
#### **Method Description**
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
```table
|
|
83
|
+
Config(classHeading: )
|
|
84
|
+
|
|
85
|
+
|Returns |
|
|
86
|
+
|Type |Description |
|
|
87
|
+
|[[REF=,MDN_number]]|The total length of the [[REF=, ABS_Content]].|
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
***
|
|
91
|
+
|
|
92
|
+
[[NOTE={"guid":"8d351eb1-e1d3-4396-93c8-9ad5903b97f8"}]]
|
|
93
|
+
[[ANCHOR={"id":"content-base-indexOf","visible":true}]]
|
|
94
|
+
### **ContentBase.indexOf**
|
|
95
|
+
```
|
|
96
|
+
contentBase.indexOf(value[, start]);
|
|
97
|
+
```
|
|
98
|
+
Searches for a value in the [[REF=, ABS_Content]].
|
|
99
|
+
|
|
100
|
+
[[NOTE={"guid":"493cc51b-5e2f-4248-846d-890952dc953b"}]]
|
|
101
|
+
[[ANCHOR={"id":"504ae659-5b12-42fd-92e5-bbd1e8314061","visible":true}]]
|
|
102
|
+
#### **Method Description**
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
```table
|
|
106
|
+
Config(classHeading: )
|
|
107
|
+
|
|
108
|
+
|Parameters |
|
|
109
|
+
|Name |Type |Default|Description |
|
|
110
|
+
|value|[[REF=,MDN_string]] | [[REF=,NODEJS_Buffer]]| |The value to search for. |
|
|
111
|
+
|start|[[REF=,MDN_number]] |0 |The start index of the search.|
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
```table
|
|
115
|
+
Config(classHeading: )
|
|
116
|
+
|
|
117
|
+
|Returns |
|
|
118
|
+
|Type |Description |
|
|
119
|
+
|[[REF=,MDN_number]]|The index in which the value is found, or -1 if not found.|
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
***
|
|
123
|
+
|
|
124
|
+
[[NOTE={"guid":"42a8007f-d5f1-4192-9936-0855fa19ca1b"}]]
|
|
125
|
+
[[ANCHOR={"id":"content-base-slice","visible":true}]]
|
|
126
|
+
### **ContentBase.slice**
|
|
127
|
+
```
|
|
128
|
+
contentBase.slice([start[, end]]);
|
|
129
|
+
```
|
|
130
|
+
Retrieves a slice of the [[REF=, ABS_Content]].
|
|
131
|
+
|
|
132
|
+
[[NOTE={"guid":"a94cf4bf-8663-48b9-8297-5d731eff3844"}]]
|
|
133
|
+
[[ANCHOR={"id":"21c01b67-3efd-4761-97b6-63f9ce21cd0e","visible":true}]]
|
|
134
|
+
#### **Method Description**
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
```table
|
|
138
|
+
Config(classHeading: )
|
|
139
|
+
|
|
140
|
+
|Parameters |
|
|
141
|
+
|Name |Type |Default|Description |
|
|
142
|
+
|start|[[REF=,MDN_string]] | [[REF=,NODEJS_Buffer]]|0 |Start index. |
|
|
143
|
+
|end |[[REF=,MDN_number]] |-1 |End index. -1 means get everything from ***start***.|
|
|
144
|
+
```
|
|
145
|
+
|
|
146
|
+
```table
|
|
147
|
+
Config(classHeading: )
|
|
148
|
+
|
|
149
|
+
|Returns |
|
|
150
|
+
|Type |Description |
|
|
151
|
+
|[[REF=,NODEJS_Buffer]]|The resulting ***value***.|
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
***
|
|
155
|
+
|
|
156
|
+
[[NOTE={"guid":"f6cb3227-bb47-4338-85f4-47d4a69d7f51"}]]
|
|
157
|
+
[[ANCHOR={"id":"content-base-normalize","visible":true}]]
|
|
158
|
+
### **ContentBase.normalize**
|
|
159
|
+
```
|
|
160
|
+
contentBase.normalize();
|
|
161
|
+
```
|
|
162
|
+
Resets the current [[REF=, NODEJS_Buffer]] to the first [[REF=, NODEJS_Buffer]].
|
|
163
|
+
|
|
164
|
+
[[NOTE={"guid":"8f8b9061-b846-486e-8763-352cd097fb01"}]]
|
|
165
|
+
[[ANCHOR={"id":"a36aa142-8dde-422f-be50-3a55f5b4f227","visible":true}]]
|
|
166
|
+
#### **Method Description**
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
***
|