mirror of
git://git.psyc.eu/libpsyc
synced 2024-08-15 03:19:02 +00:00
refactoring - more renames
This commit is contained in:
parent
f25e768482
commit
344cdb7996
21 changed files with 215 additions and 199 deletions
|
@ -101,7 +101,7 @@ Bool psyc_var_is_routing (char* name, size_t len);
|
|||
|
||||
bool isRoutingVar (char[] name)
|
||||
{
|
||||
return psyc_var_is_routing(name.ptr, name.length); //FIXME
|
||||
return psyc_var_is_routing(name.data, name.length); //FIXME
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -105,7 +105,7 @@ struct Modifier
|
|||
|
||||
if (value.length > PSYC_MODIFIER_SIZE_THRESHOLD)
|
||||
flag = ModifierFlag.NEED_LENGTH;
|
||||
else if (memchr(value.ptr, cast(int)'\n', value.length))
|
||||
else if (memchr(value.data, cast(int)'\n', value.length))
|
||||
flag = ModifierFlag.NEED_LENGTH;
|
||||
else
|
||||
flag = ModifierFlag.NO_LENGTH;
|
||||
|
@ -162,7 +162,7 @@ struct Packet
|
|||
psyc_packet_length_set(this);
|
||||
|
||||
with (RenderRC)
|
||||
switch (psyc_render(this, buffer.ptr, buffer.length))
|
||||
switch (psyc_render(this, buffer.data, buffer.length))
|
||||
{
|
||||
case ERROR_METHOD_MISSING:
|
||||
throw new Exception("Method missing");
|
||||
|
|
|
@ -247,13 +247,13 @@ struct ParseState
|
|||
|
||||
ubyte* getRemainingBuffer ( )
|
||||
{
|
||||
return cast(ubyte*)this.buffer.ptr + this.cursor;
|
||||
return cast(ubyte*)this.buffer.data + this.cursor;
|
||||
}
|
||||
|
||||
void getRemainingBuffer ( ref ubyte[] buf )
|
||||
{
|
||||
|
||||
buf = cast(ubyte[])this.buffer.ptr[cursor .. cursor + getRemainingLength()];
|
||||
buf = cast(ubyte[])this.buffer.data[cursor .. cursor + getRemainingLength()];
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue