RawWriter.withCapacity constructor
Creates a writer with an allocated buffer of capacity bytes.
Implementation
factory RawWriter.withCapacity(int capacity, {bool isExpanding = true}) {
return RawWriter.withByteData(ByteData(capacity), isExpanding: isExpanding);
}