You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Mostly minor formatting.
Removed 4th column, as it leads to odd line-wrapping,
and seems to be largely redundant (the Common Flag is
*always* Binary, except if an error is thrown)
The RawBinaryTranscoder provides the ability for the user to explicitly store and retrieve raw byte data to Couchbase.
146
-
The transcoder does not perform any form of real transcoding, and does not take a serializer, but rather passes the data through and assigns the appropriate binary Common Flag.
146
+
The transcoder does not perform any form of real transcoding, and does not take a serializer, but rather passes the data through and assigns the appropriate `Binary` Common Flag (except in the case of an exception).
147
147
148
-
[cols="4", options="header"]
148
+
[cols="3", options="header"]
149
149
|===
150
150
|Item
151
151
|Encoding Result
152
152
|Decoding Result
153
-
|Common Flag
154
153
155
154
|String
156
155
|InvalidArgumentException
157
156
|InvalidArgumentException
158
-
|-
159
157
160
158
|byte[]
161
159
|Passthrough
162
160
|Passthrough
163
-
|Binary
164
161
165
162
|Memory<byte>
166
-
|Passthrough (≥ 3.2.6)
163
+
|Passthrough +
164
+
(from 3.2.6)
167
165
|InvalidArgumentException
168
-
|Binary
169
166
170
167
|ReadOnlyMemory<byte>
171
-
|Passthrough (≥ 3.2.6)
168
+
|Passthrough +
169
+
(from 3.2.6)
172
170
|InvalidArgumentException
173
-
|Binary
174
171
175
172
|IMemoryOwner<byte>
176
173
|InvalidArgumentException
177
-
|Passthrough (≥ 3.2.6)
178
-
|Binary
174
+
|Passthrough +
175
+
(from 3.2.6)
179
176
180
177
|Other `Object`
181
178
|InvalidArgumentException
182
179
|InvalidArgumentException
183
-
|-
184
180
|===
185
181
186
182
Here’s an example of using the `RawBinaryTranscoder`:
@@ -190,9 +186,8 @@ Here’s an example of using the `RawBinaryTranscoder`:
From version 3.2.6, the `RawBinaryTranscoder` will accept `Memory<byte>` and `ReadOnlyMemory<byte>` inputs
194
-
and can return `IMemoryOwner<byte>` outputs. Using these types may improve performace by not allocating
195
-
large, temporary `byte[]` arrays on the heap.
189
+
From version 3.2.6, the `RawBinaryTranscoder` will accept `Memory<byte>` and `ReadOnlyMemory<byte>` inputs and can return `IMemoryOwner<byte>` outputs.
190
+
Using these types may improve performance by not allocating large, temporary `byte[]` arrays on the heap.
0 commit comments