Can I trust aws-sdk-s3
's GetObjectOutput
's content_length
?
#916
-
I want to know how large the I've seen there's I'm probably overthinking this, but can I trust this value to always be accurate and never have any negative "magic" values? The API doc does not mention why the field is signed at all:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Yes, it can be trusted. The reason why it is
The SDK in another language, such as Java, may not have unsigned long type. So for consistency across SDKs generated out of the model, the return type of |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
Yes, it can be trusted. The reason why it is
i64
is that it is defined as such in a Smithy model for S3:The SDK in another language, such as Java, may not have unsigned long type. So for consistency across SDKs generated out of the model, the return type of
content_length
is defined to bei64
.