Java 应用与开发 - 高级 I/O 编程Java 1/0 原理 常用 I/O 流类型 # Java 应用与开发 高级 I/O 编程 王晓东 wangxiaodong@ouc.edu.cn 中国海洋大学 October 29, 2018   Source) 数据宿(Data Sink) ▶ 流(Stream) Java 中把不同的数据源与程序间的数据传输都抽象表述为流,java.io 包中定义了多种 I/O 流类型实现数据 I/O 功能。 ## Java I/O 流的分类 ## ☑ 按照数据流动的方向 Java 流可分为输入流(Input Stream)和输出流(Output Stream)。 ▶ 输入流只能从中读取数据,而不能向其写出数据;0 码力 | 27 页 | 609.17 KB | 2 年前3
File I/O for Game Developers: Past, Present, and FutureFile I/O for Game Developers: Past, Present, and Future ## GUY DAVIDSON ## 20 23 October 01 - 06 # FILE I/O: PAST, PRESENT AND FUTURE CPPCON OCTOBER 3 $ ^{RD} $ 2023 GUY DAVIDSON @HATCAT01 ## I NTRODUCTIONS |• File access - open fclose flush|• Direct i/o - fread fwrite|• Unformatted i/o - fgetc/fgets fputc/fputs getchar putchar| |---|---|---| |• Formatted i/o - scanf printf|• File positioning - ftell fgetpos 428777cdd7bd07f47/p55_1.jpg) ## THE 64-BIT ADDRESS SPACE https://wg21.link/p1040 “I’m very keen on std::embed. I’ve been hand-embedding data in executables for NEARLY FORTY YEARS now. — Guy "Hatcat"0 码力 | 64 页 | 2.69 MB | 1 年前3
Coroutines and Structured Concurrency in PracticeChallenges when onboarding coroutines A lot of existing code mostly callback-based A custom-built I/O event loop predates Asio by a decade fine-tuned for specific use cases Somewhat conservative audience cases Making an operation externally cancellable TasklongRunning(); Event* evt = nullptr; Task cancellable() { Event e; evt = &e; co_await anyOf(longRunning(), e); } void cancel() concurrency Tasks naturally form a "call tree" • coroutines • leaf awaitables (sleeping, I/O, etc) • combiners (all0f(), any0f()) Every task in the tree has another suspended task waiting for 0 码力 | 103 页 | 1.98 MB | 1 年前3
Concurrency Patterns Istructure Software system ## ■ Design pattern ■ Interplay of components ■ Focus on a subsystem ## I diome ■ Implementation of an architecture or design pattern in a concrete programming language. ## Interface ■ Guarded Suspension Reactor ## Scoped Locking ## Scoped Locking is RAI applied to locking ## I dea: - Bind the acquiring (constructor) and the releasing (destructor) of the resource to the lifetime locking strategies as replaceable components. Is the application of the strategy pattern to locking. ## I dea: ■ You want to use your library in various domains. - Depending on the domain, you want to use0 码力 | 39 页 | 1.14 MB | 1 年前3
Why I Was Wrong About
TypeScript## Why I Was Wrong About TypeScript TJ VanToll Progress $ ^{®} $ DevReach 2013 THE PREMIER DEVELOPER CONFERENCE IN CENTRAL & EASTERN EUROPE ## TypeScript TypeScript Modules Decorators Generics Triple-Slash Directives Structural detection ## Why I Was Wrong About TypeScript ## Whether TypeScript is a good fit for your next project ## Why I Was Wrong About TypeScript ## “A typed superset of JavaScript square x # Splats: race = (winner, runners...) -> print winner, runners # Existence: alert "I knew it!" if elvis? # Array comprehensions: cubes = (math.cube num for num in list) Watch the videos0 码力 | 61 页 | 3.65 MB | 2 年前3
Nim Tutorial (Part I) 0.17.1#### Nim Tutorial (Part I) 0.17.1 ## Andreas Rumpf August 19, 2017 Contents 1 Introduction 2 2 The first program 2 3 Lexical elements 2 3.1 String and character literals 3 3.2 Comments 3 turned off and optimizations are turned on. Though it should be pretty obvious what the program does, I will explain the syntax: statements which are not indented are executed when the program starts. Indentation can have any Nim code text commented out inside this with no indentation restrictions. yes("May I ask a You can also use the discard statement together with long string literals to create block comments:0 码力 | 24 页 | 271.23 KB | 1 年前3
angular2 mock test i[Image](/uploads/documents/4/1/f/7/41f7ae8ceaa6f78310b437a4e201349e/p1_1.jpg) ## ANGULAR 2 MOCK TEST I ## Q 1 - Which of the following is correct about Angular 2 Components? A - AngularJS had a focus of0 码力 | 4 页 | 83.79 KB | 2 年前3
Tornado 6.1 Documentation
developed at FriendFeed [https://en.wikipedia.org/wiki/FriendFeed]. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long.polling [https://en asyncio [https://docs.python.org/3.6/library/asyncio.html#module-asyncio] module and shares the same event loop (by default since Tornado 5.0). In general, libraries designed for use with asyncio [https://docs [https://docs.python.org/3.6/library/asyncio.html#module-asyncio] can be mixed freely with Tornado. ## I nstallation ## pip install tornado Tornado is listed in PyPI [https://pypi.org/project/tornado/] and can0 码力 | 931 页 | 708.03 KB | 2 年前3
Julia 1.8.0 Documentation## The Julia Language ## julia V1.8.0 The Julia Project August 19, 2022 ## Contents Contents I Manual 1 Julia 1.8 Documentation 2 Getting Started 2.1 Resources 3 Variables 3.1 Allowed Variable Operations on Arrays ..... 269 21 Networking and Streams ..... 271 21.1 Basic Stream I/O ..... 271 21.2 Text I/O ..... 272 21.3 IO Output Contextual Properties ..... 273 21.4 Working with Files 21.5 A simple TCP example ..... 274 21.6 Resolving IP Addresses ..... 276 21.7 Asynchronous I/O ..... 276 21.8 Multicast ..... 277 22 Parallel Computing ..... 279 23 Asynchronous Programming0 码力 | 1595 页 | 5.35 MB | 2 年前3
Julia 1.10.0 DEV DocumentationJulia Language ## julia V1.10.0-DEV.1622 The Julia Project July 3, 2023 ## Contents Contents I Manual 1 Julia 1.10-DEV Documentation 1.1 Important Links 1.2 Introduction 1.3 Julia Compared Operations on Arrays ..... 281 21 Networking and Streams ..... 283 21.1 Basic Stream I/O ..... 283 21.2 Text I/O ..... 284 21.3 IO Output Contextual Properties ..... 285 21.4 Working with Files 21.5 A simple TCP example ..... 286 21.6 Resolving IP Addresses ..... 288 21.7 Asynchronous I/O ..... 288 21.8 Multicast ..... 289 22 Parallel Computing ..... 291 23 Asynchronous Programming0 码力 | 1678 页 | 5.95 MB | 2 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100
相关搜索词
I/O流字节流字符流InputStreamOutputStreamFile I/Obuffered file IOunbuffered file IODirectStorageC++coroutinesstructured concurrencycallback-basedI/O event loopobject lifetime managementConcurrency PatternsThread-Specific StorageMonitor ObjectScoped LockingFutureTypeScriptJavaScriptTJ VanTollProgress核心构建Nimvar statementprocstring literalscontrol flowAngular 2组件服务模块指令Tornadoasynchronous networkingevent loopIOStreamcoroutineDocumentationREPLCrashesI/OJulia 1.8Julia调试文档环境变量













