dump() private method

private dump ( Buffer buf ) : void
buf Buffer
return void
コード例 #1
0
ファイル: ChannelSftp.cs プロジェクト: joconno4/MediaPortal-2
		private void sendSETSTAT(byte[] path, SftpATTRS attr) 
		{ //throws Exception{
			packet.reset();
			putHEAD(SSH_FXP_SETSTAT, 9+path.Length+attr.Length());
			buf.putInt(seq++);
			buf.putString(path);             // path
			attr.dump(buf);
			session.write(packet, this, 9+path.Length+attr.Length()+4);
		}
コード例 #2
0
ファイル: ChannelSftp.cs プロジェクト: joconno4/MediaPortal-2
		private void sendMKDIR(byte[] path, SftpATTRS attr) 
		{ //throws Exception{
			packet.reset();
			putHEAD(SSH_FXP_MKDIR, 9+path.Length+(attr!=null?attr.Length():4));
			buf.putInt(seq++);
			buf.putString(path);             // path
			if(attr!=null) attr.dump(buf);
			else buf.putInt(0);
			session.write(packet, this, 9+path.Length+(attr!=null?attr.Length():4)+4);
		}
コード例 #3
0
ファイル: ChannelSftp.cs プロジェクト: yash0924/csharputils
 private void sendSETSTAT(String path, SftpATTRS attr)
 {
     packet.reset();
     putHEAD(SSH_FXP_SETSTAT, 9 + path.Length + attr.Length());
     buf.WriteInt(seq++);
     buf.WriteString(path);             // path
     attr.dump(buf);
     session.write(packet, this, 9 + path.Length + attr.Length() + 4);
 }