withData static method

FastBinary withData(
  1. List<int> bytes
)

Implementation

static FastBinary withData(List<int> bytes) {
  FastBinary binary = make();
  if (bytes.isEmpty) {
    return make();
  }
  return binary.appendList(bytes);
}