oss_sample_util.h 629 B

123456789101112131415161718192021222324252627
  1. #ifndef OSS_SAMPLE_UTIL_H
  2. #define OSS_SAMPLE_UTIL_H
  3. #include "aos_http_io.h"
  4. #include "aos_string.h"
  5. #include "aos_transport.h"
  6. #include "oss_define.h"
  7. OSS_CPP_START
  8. void make_rand_string(aos_pool_t *p, int len, aos_string_t *data);
  9. aos_buf_t *make_random_buf(aos_pool_t *p, int len);
  10. void make_random_body(aos_pool_t *p, int count, aos_list_t *bc);
  11. void init_sample_config(oss_config_t *config, int is_cname);
  12. void init_sample_request_options(oss_request_options_t *options, int is_cname);
  13. int64_t get_file_size(const char *file_path);
  14. void percentage(int64_t consumed_bytes, int64_t total_bytes);
  15. OSS_CPP_END
  16. #endif