Created
December 16, 2015 07:27
-
-
Save freeonterminate/8579d4ac5142efbe77a4 to your computer and use it in GitHub Desktop.
Android 4.x で THttpClient.Get の引数に TFileStream を使うと動作しない件の修正ユニット
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unit uFileStreamFixForAndroid4; | |
interface | |
uses | |
System.Classes | |
, System.SysUtils | |
; | |
type | |
TFileStream = class(System.Classes.TFileStream) | |
public | |
function Write( | |
const Buffer: TBytes; | |
Offset, Count: Integer): Longint; override; | |
end; | |
implementation | |
{ TFileStream } | |
function TFileStream.Write( | |
const Buffer: TBytes; | |
Offset, Count: Integer): Longint; | |
begin | |
Result := FileWrite(Handle, Buffer[Offset], Count); | |
end; | |
end. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment