代码搜索:FileStream
找到约 559 项符合「FileStream」的源代码
代码结果 559
www.eeworm.com/read/232947/14176064
vb httpfile.vb
Public Class HttpFile
Public formm As New Form2
Public threadh As Integer '线程代号
Public filename As String '文件名
Public strUrl As String '接收文件的URL
Public fs As IO.FileStream
www.eeworm.com/read/338546/3315210
py treeparser.py
import sys
import antlr3
import antlr3.tree
from LangLexer import LangLexer
from LangParser import LangParser
from LangDumpDecl import LangDumpDecl
cStream = antlr3.FileStream(sys.argv[1])
lexer = La
www.eeworm.com/read/338546/3315240
py tweak.py
import sys
import antlr3
from TLexer import TLexer
from TParser import TParser
cStream = antlr3.FileStream(sys.argv[1])
lexer = TLexer(cStream)
tStream = antlr3.TokenRewriteStream(lexer)
parser = TPa
www.eeworm.com/read/238319/4615912
dpr ioobjectdemo1.dpr
program IOObjectDemo1;
{$APPTYPE CONSOLE}
uses
SysUtils,
IOD1_Classes in 'IOD1_Classes.pas',
xrtl_io_Stream, xrtl_io_FileStream,
xrtl_sdf_Serializer, xrtl_sdf_binary_Serializer,
x
www.eeworm.com/read/200978/5063158
hip fsiobuff.hip
#ifndef FSIOBUFF_HIP
#define FSIOBUFF_HIP
/* IO buffers */
/*------------*/
void Fs86_05BFUpdateIOBuffFromFile( t_fsFILE * pp_FileStream, s32 vp_NewFilePosition );
s32 Fs86_01BFCalcNewBuffPos( t_fsFI
www.eeworm.com/read/152930/12073575
vb form3.vb
Imports System.IO.FileStream
Imports System.IO.File
imports System.IO
Public Class Form3
Inherits System.Windows.Forms.Form
Dim s_name As String
Dim s_date, s_time, s_barcode, s_kh
www.eeworm.com/read/317426/3580343
txt 使用实现了dispose模式的类型.txt
FileStream 实现了Dispose模式
Close方法并不是Dispose正定义的一部分,有此类型提供Close,而有此则没有。
一般情况大家不需要调用Disponse或Close方法
但需要显示清理非托管资源时,应调用Disponse或Close方法.阻止对象的代龄提升,提高应用程序的性能。
using System;
using System.IO;
nam
www.eeworm.com/read/169773/5410879
txt 引用类型和值类型.txt
1.引用类型(reference type):两个对象赋值后,相互影响。(分配在托管堆上)
2.值类型(value type):两个对象赋值后,不相互影响。(分配在线程堆栈上)
两种类型就在内存中
引用类型的识别:
被称为类的类型:系统中,System.Object,System.Exception,FileStream,Random等
接口
自定义时使用class的类型
www.eeworm.com/read/317426/3580344
txt 使用实现了dispose模式的类型2(更好的方法-使用c#中using).txt
<mark>FileStream</mark> 实现了Dispose模式
using 语句只能用于那些实现了IDisposable接口的类型。使用时应谨慎。
下面代码中段1和段2是等效的。
段2中的using语句使编译器自动产生try...finally块,在finally块中将变量转型为IDisposable接口,并调用Dispose方法。
using 语句支持相同类型的多个变量及已初始化的变 ...