public ReadString ( long offset, int length ) : string | ||
offset | long | |
length | int | |
return | string |
public Variant(Stream stream) { _stream = new LibStream(stream); VariantName = _stream.ReadUnicodeString(0x48, 32); VariantDescription = _stream.ReadString(0x68, 128); VariantAuthor = _stream.ReadString(0xE8, 16); }
public Variant(Stream stream) { _stream = new LibStream(stream); VariantName = _stream.ReadUnicodeString(0x48, 32); VariantDescription = _stream.ReadString(0x68, 128); VariantAuthor = _stream.ReadString(0xE8, 16); }
public static VariantType Detect(Stream stream) { LibStream _stream = new LibStream(stream); // Validate the Magic if (_stream.ReadString(0, 4) != "_blf") return VariantType.Invalid; // Check what the file variant is. switch (_stream.ReadString(0x138, 4)) { case "mapv": return VariantType.ForgeVariant; case "mpvr": return VariantType.GameVariant; default: return VariantType.Invalid; } }
public static VariantType Detect(Stream stream) { LibStream _stream = new LibStream(stream); // Validate the Magic if (_stream.ReadString(0, 4) != "_blf") { return(VariantType.Invalid); } // Check what the file variant is. switch (_stream.ReadString(0x138, 4)) { case "mapv": return(VariantType.ForgeVariant); case "mpvr": return(VariantType.GameVariant); default: return(VariantType.Invalid); } }