Lines Matching refs:BufHandle

316 	    {ok,BufHandle} = open_buf(Pid, CryptoInitFun, BI, FileOpTimeout),
319 write_buf(Pid, SftpHandle, BufHandle, to_bin(Data), FileOpTimeout);
321 position_buf(Pid, SftpHandle, BufHandle, Pos, FileOpTimeout);
327 }} = call(Pid, {get_bufinf,BufHandle}, FileOpTimeout),
332 call(Pid, {erase_bufinf,BufHandle}, FileOpTimeout),
352 {ok,BufHandle} = open_buf(Pid, CryptoInitFun, BI, FileOpTimeout),
355 read_buf(Pid, SftpHandle, BufHandle, Len, FileOpTimeout);
357 position_buf(Pid, SftpHandle, BufHandle, Pos, FileOpTimeout);
359 call(Pid, {erase_bufinf,BufHandle}, FileOpTimeout),
911 do_handle_call({get_bufinf,BufHandle}, _From, S=#state{inf=I0}) ->
912 {reply, maps:find(BufHandle,I0), S};
914 do_handle_call({put_bufinf,BufHandle,B}, _From, S=#state{inf=I0}) ->
915 {reply, ok, S#state{inf=maps:put(BufHandle,B,I0)}};
917 do_handle_call({erase_bufinf,BufHandle}, _From, S=#state{inf=I0}) ->
918 {reply, ok, S#state{inf=maps:remove(BufHandle,I0)}};
1649 position_buf(Pid, SftpHandle, BufHandle, Pos, FileOpTimeout) ->
1652 size = Size}} = call(Pid, {get_bufinf,BufHandle}, FileOpTimeout),
1669 case read_buf(Pid, SftpHandle, BufHandle, Skip, FileOpTimeout) of
1683 read_buf(Pid, SftpHandle, BufHandle, WantedLen, FileOpTimeout) ->
1685 {ok,B0} = call(Pid, {get_bufinf,BufHandle}, FileOpTimeout),
1688 call(Pid, {put_bufinf,BufHandle,B}, FileOpTimeout),
1693 call(Pid, {put_bufinf,BufHandle,B}, FileOpTimeout),
1746 write_buf(Pid, SftpHandle, BufHandle, PlainBin, FileOpTimeout) ->
1748 {ok,B0=#bufinf{plain_text_buf=PTB}} = call(Pid, {get_bufinf,BufHandle}, FileOpTimeout),
1752 call(Pid, {put_bufinf,BufHandle,B}, FileOpTimeout),
1820 BufHandle = make_ref(),
1821 call(Pid, {put_bufinf,BufHandle,BufInfo}, FileOpTimeout),
1822 {ok,BufHandle}.