decode static method

DirectoryEntry? decode(
  1. Unpacker u
)

Implementation

static DirectoryEntry? decode(Unpacker u) {
  switch (u.unpackListLength()) {
    case 0: return null;
    case 2: break;
    default: throw DecodeError();
  }
  return DirectoryEntry(
    name: (u.unpackString())!,
    entryType: (EntryType.decode(u))!,
  );
}