MemoLayout.fromBuffer constructor

MemoLayout.fromBuffer(
  1. List<int> data
)

Constructs a MemoLayout instance from a buffer.

Implementation

factory MemoLayout.fromBuffer(List<int> data) {
  return MemoLayout(
      memo: StringUtils.decode(data, StringEncoding.utf8, true));
}