5#ifndef RUNTIME_BIN_UTILS_H_
6#define RUNTIME_BIN_UTILS_H_
35 int code() {
return code_; }
41 void set_code(
int code) { code_ =
code; }
42 void SetMessage(
const char*
message) {
55 DISALLOW_COPY_AND_ASSIGN(
OSError);
74 intptr_t* result_len =
nullptr);
77 intptr_t* result_len =
nullptr);
80 intptr_t* result_len =
nullptr);
83 intptr_t* result_len =
nullptr);
86 DISALLOW_ALLOCATION();
100 DISALLOW_ALLOCATION();
112 DISALLOW_ALLOCATION();
static char * StrDup(const char *s)
OSError(int code, const char *message, SubSystem sub_system)
void SetCodeAndMessage(SubSystem sub_system, int code)
static bool GetUtf8Argv(int argc, char **argv)
static char * Utf8ToConsoleString(char *utf8, intptr_t len=-1, intptr_t *result_len=nullptr)
static const char * Utf8ToConsoleString(const char *utf8, intptr_t len=-1, intptr_t *result_len=nullptr)
static char * ConsoleStringToUtf8(char *str, intptr_t len=-1, intptr_t *result_len=nullptr)
static const char * ConsoleStringToUtf8(const char *str, intptr_t len=-1, intptr_t *result_len=nullptr)
static void Sleep(int64_t millis)
static int64_t GetCurrentMonotonicMicros()
static int64_t GetCurrentMonotonicMillis()