⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 streams.mal

📁 一个内存数据库的源代码这是服务器端还有客户端
💻 MAL
字号:
#line 28 "/export/scratch0/monet/monet.GNU.64.64.d.14791/MonetDB5/src/modules/atoms/streams.mx"module streams;atom streams:ptr;command openReadBytes{unsafe}( filename:str ) :streamsaddress stream_open_rstreamwrapcomment "open a file stream for reading";command openWriteBytes{unsafe}( filename:str ) :streamsaddress stream_open_wstreamwrapcomment "open a file stream for writing";command openRead{unsafe}( filename:str ) :streamsaddress stream_open_rastreamwrapcomment "open ascii file stream for reading";command openWrite{unsafe}( filename:str ) :streamsaddress stream_open_wastreamwrapcomment "open ascii file stream for writing";command openRead{unsafe}(s:streams):streamsaddress stream_stream_rstreamwrapcomment "convert an ascii stream to binary";command openWrite{unsafe}(s:streams):streamsaddress stream_stream_wstreamwrapcomment "convert an ascii stream to binary";command socketReadBytes{unsafe}(skt:int,name:str):streamsaddress stream_socket_rstreamwrapcomment "open a socket stream for reading";command socketWriteBytes{unsafe}(skt:int,name:str):streamsaddress stream_socket_wstreamwrapcomment "open a socket stream for writing";command socketRead{unsafe}(skt:int,name:str):streamsaddress stream_socket_rastreamwrapcomment "open ascii socket stream for reading";command socketWrite{unsafe}(skt:int,name:str):streamsaddress stream_socket_wastreamwrapcomment "open ascii socket stream for writing";command blocked{unsafe}( s:streams ) :streamsaddress open_block_streamwrapcomment "open a block based stream";command writeStr{unsafe}( s:streams, data:str ):voidaddress stream_write_stringwrapcomment "write data on the stream";command writeInt{unsafe}( s:streams, data:int ):voidaddress stream_writeIntwrapcomment "write data on the stream";command readStr{unsafe}( s:streams):straddress stream_read_stringwrapcomment "read string data from the stream";command readInt{unsafe}( s:streams):intaddress stream_readIntwrapcomment "read integer data from the stream";command flush{unsafe}( s:streams )address stream_flush_streamwrapcomment "flush the stream";command close{unsafe}( s:streams )address stream_close_streamwrapcomment "close and destroy the stream s";atom bstream:ptr;command create{unsafe}(s:streams, bufsize:int):bstreamaddress bstream_create_wrapwrapcomment "create a buffered stream";command destroy{unsafe}(s:bstream)address bstream_destroy_wrapwrapcomment "destroy bstream";command read{unsafe}(s:bstream,size:int):intaddress bstream_read_wrapwrapcomment "read at least size bytes into the buffer of s";

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -