chore[php]: rename booleanArray

This commit is contained in:
godotg
2024-07-11 18:30:01 +08:00
parent c801f0ff62
commit 6a0fed1270
4 changed files with 10 additions and 10 deletions
@@ -57,7 +57,7 @@ public class CutDownArraySerializer implements ICutDownSerializer {
builder.append(StringUtils.format("buffer:writeBooleanArray({})", objectStr)).append(LS);
break;
case Php:
builder.append(StringUtils.format("$buffer->writeBooleanArray({});", objectStr)).append(LS);
builder.append(StringUtils.format("$buffer->writeBoolArray({});", objectStr)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("buffer.WriteBooleanArray({});", objectStr)).append(LS);
@@ -84,7 +84,7 @@ public class CutDownArraySerializer implements ICutDownSerializer {
builder.append(StringUtils.format("buffer:writeBooleanArray({})", objectStr)).append(LS);
break;
case Php:
builder.append(StringUtils.format("$buffer->writeBooleanArray({});", objectStr)).append(LS);
builder.append(StringUtils.format("$buffer->writeBoolArray({});", objectStr)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("buffer.WriteBooleanArray({});", objectStr)).append(LS);
@@ -514,7 +514,7 @@ public class CutDownArraySerializer implements ICutDownSerializer {
break;
case Php:
array = "$" + array;
builder.append(StringUtils.format("{} = $buffer->readBooleanArray();", array)).append(LS);
builder.append(StringUtils.format("{} = $buffer->readBoolArray();", array)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("var {} = buffer.ReadBooleanArray();", array)).append(LS);
@@ -557,7 +557,7 @@ public class CutDownArraySerializer implements ICutDownSerializer {
break;
case Php:
array = "$" + array;
builder.append(StringUtils.format("{} = $buffer->readBooleanArray();", array)).append(LS);
builder.append(StringUtils.format("{} = $buffer->readBoolArray();", array)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("var {} = buffer.ReadBooleanArray();", array)).append(LS);
@@ -56,7 +56,7 @@ public class CutDownListSerializer implements ICutDownSerializer {
builder.append(StringUtils.format("buffer:writeBooleanArray({})", objectStr)).append(LS);
break;
case Php:
builder.append(StringUtils.format("$buffer->writeBooleanArray({});", objectStr)).append(LS);
builder.append(StringUtils.format("$buffer->writeBoolArray({});", objectStr)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("buffer.WriteBooleanList({});", objectStr)).append(LS);
@@ -353,7 +353,7 @@ public class CutDownListSerializer implements ICutDownSerializer {
break;
case Php:
list = "$" + list;
builder.append(StringUtils.format("{} = buffer->readBooleanArray();", list)).append(LS);
builder.append(StringUtils.format("{} = buffer->readBoolArray();", list)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("var {} = buffer.ReadBooleanList();", list)).append(LS);
@@ -60,7 +60,7 @@ public class CutDownSetSerializer implements ICutDownSerializer {
builder.append(StringUtils.format("buffer:writeBooleanArray({})", objectStr)).append(LS);
break;
case Php:
builder.append(StringUtils.format("$buffer->writeBooleanArray({});", objectStr)).append(LS);
builder.append(StringUtils.format("$buffer->writeBoolArray({});", objectStr)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("buffer.WriteBooleanSet({});", objectStr)).append(LS);
@@ -350,7 +350,7 @@ public class CutDownSetSerializer implements ICutDownSerializer {
break;
case Php:
set = "$" + set;
builder.append(StringUtils.format("{} = $buffer->readBooleanArray();", set)).append(LS);
builder.append(StringUtils.format("{} = $buffer->readBoolArray();", set)).append(LS);
break;
case CSharp:
builder.append(StringUtils.format("var {} = buffer.ReadBooleanSet();", set)).append(LS);
@@ -394,7 +394,7 @@ class ByteBuffer
return $protocolRegistration->read($this);
}
public function writeBooleanArray(array $array): void
public function writeBoolArray(array $array): void
{
if (empty($array)) {
$this->writeInt(0);
@@ -407,7 +407,7 @@ class ByteBuffer
}
}
public function readBooleanArray(): array
public function readBoolArray(): array
{
$size = $this->readInt();
$array = array();