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
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/implementation/structuredmessage/StructuredMessageDecoder.java
+10Lines changed: 10 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -127,6 +127,16 @@ public long getLastCompleteSegmentStart() {
127
127
returnlastCompleteSegmentStart;
128
128
}
129
129
130
+
/**
131
+
* Returns the canonical absolute byte index (0-based) that should be used to resume a failed/incomplete download.
132
+
* This MUST be used directly as the Range header start value: "Range: bytes={retryStartOffset}-"
133
+
*
134
+
* @return The absolute byte index for the retry start offset.
135
+
*/
136
+
publiclonggetRetryStartOffset() {
137
+
returnlastCompleteSegmentStart;
138
+
}
139
+
130
140
/**
131
141
* Gets the current message offset (total bytes consumed from the structured message).
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-common/src/main/java/com/azure/storage/common/policy/StorageContentValidationDecoderPolicy.java
+87-2Lines changed: 87 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -18,9 +18,12 @@
18
18
importreactor.core.publisher.Flux;
19
19
importreactor.core.publisher.Mono;
20
20
21
+
importjava.io.IOException;
21
22
importjava.nio.ByteBuffer;
22
23
importjava.nio.charset.Charset;
23
24
importjava.util.concurrent.atomic.AtomicLong;
25
+
importjava.util.regex.Matcher;
26
+
importjava.util.regex.Pattern;
24
27
25
28
/**
26
29
* This is a decoding policy in an {@link com.azure.core.http.HttpPipeline} to decode structured messages in
0 commit comments