mirror of
https://github.com/adamdruppe/arsd.git
synced 2025-04-26 05:10:01 +03:00
dip1000
This commit is contained in:
parent
68c21e39d9
commit
2e74c02216
1 changed files with 3 additions and 3 deletions
6
cgi.d
6
cgi.d
|
@ -7013,7 +7013,7 @@ interface EventIoServer {
|
|||
}
|
||||
|
||||
// the sink should buffer it
|
||||
private void serialize(T)(scope void delegate(ubyte[]) sink, T t) {
|
||||
private void serialize(T)(scope void delegate(scope ubyte[]) sink, T t) {
|
||||
static if(is(T == struct)) {
|
||||
foreach(member; __traits(allMembers, T))
|
||||
serialize(sink, __traits(getMember, t, member));
|
||||
|
@ -7195,9 +7195,9 @@ mixin template ImplementRpcClientInterface(T, string serverPath, string cmdArg)
|
|||
|
||||
int dataLocation;
|
||||
ubyte[] grab(int sz) {
|
||||
auto d = got[dataLocation .. dataLocation + sz];
|
||||
auto dataLocation1 = dataLocation;
|
||||
dataLocation += sz;
|
||||
return d;
|
||||
return got[dataLocation1 .. dataLocation];
|
||||
}
|
||||
|
||||
typeof(return) retu;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue