Flutter Engine
The Flutter Engine
stdio.h
Go to the documentation of this file.
1// Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2// for details. All rights reserved. Use of this source code is governed by a
3// BSD-style license that can be found in the LICENSE file.
4
5#ifndef RUNTIME_BIN_STDIO_H_
6#define RUNTIME_BIN_STDIO_H_
7
8#include "bin/builtin.h"
9#include "bin/utils.h"
10
11#include "platform/globals.h"
12
13namespace dart {
14namespace bin {
15
16class Stdin {
17 public:
18 static bool ReadByte(intptr_t fd, int* byte);
19
20 static bool GetEchoMode(intptr_t fd, bool* enabled);
21 static bool SetEchoMode(intptr_t fd, bool enabled);
22
23 static bool GetEchoNewlineMode(intptr_t fd, bool* enabled);
24 static bool SetEchoNewlineMode(intptr_t fd, bool enabled);
25
26 static bool GetLineMode(intptr_t fd, bool* enabled);
27 static bool SetLineMode(intptr_t fd, bool enabled);
28
29 static bool AnsiSupported(intptr_t fd, bool* supported);
30
31 private:
32 DISALLOW_ALLOCATION();
33 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdin);
34};
35
36class Stdout {
37 public:
38 static bool GetTerminalSize(intptr_t fd, int size[2]);
39 static bool AnsiSupported(intptr_t fd, bool* supported);
40
41 private:
42 DISALLOW_ALLOCATION();
43 DISALLOW_IMPLICIT_CONSTRUCTORS(Stdout);
44};
45
46} // namespace bin
47} // namespace dart
48
49#endif // RUNTIME_BIN_STDIO_H_
static bool GetEchoNewlineMode(intptr_t fd, bool *enabled)
static bool GetEchoMode(intptr_t fd, bool *enabled)
static bool SetEchoMode(intptr_t fd, bool enabled)
static bool ReadByte(intptr_t fd, int *byte)
static bool AnsiSupported(intptr_t fd, bool *supported)
static bool SetLineMode(intptr_t fd, bool enabled)
static bool GetLineMode(intptr_t fd, bool *enabled)
static bool SetEchoNewlineMode(intptr_t fd, bool enabled)
static bool GetTerminalSize(intptr_t fd, int size[2])
static bool AnsiSupported(intptr_t fd, bool *supported)
Definition: dart_vm.cc:33
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
Definition: switches.h:259