data static method

SynchronousTarEntry data(
  1. TarHeader header,
  2. List<int> data
)

Creates an in-memory tar entry from the header and the data to store.

Implementation

static SynchronousTarEntry data(TarHeader header, List<int> data) {
  (header as HeaderImpl).size = data.length;
  return SynchronousTarEntry._(header, data);
}