internal override void Write(NBTStream stream) { int len = this.Data.Length; stream.WriteInt(len); for (int i = 0; i < len; ++i) { stream.WriteInt(this.Data[i]); } }
internal override void Write(NBTStream stream) { int len = this.Data.Length; stream.WriteInt(len); stream.Reservation(len * sizeof(int)); for (int i = 0; i < len; i++) { stream.WriteInt(this.Data[i]); } }
internal override void Write(NBTStream stream) { int len = this.Data.Length; stream.WriteInt(len); stream.Reservation(len); stream.WriteBytes(this.Data); }
internal override void Write(NBTStream stream) { stream.WriteByte((byte)this.ListTagType); stream.WriteInt(this.Tags.Count); for (int i = 0; i < this.Tags.Count; ++i) { this.Tags[i].Write(stream); } }
internal override void WriteTag(NBTStream stream) { int len = this.Data.Length; if (this.Name != null) { stream.WriteByte((byte)this.TagType); stream.WriteString(this.Name); stream.WriteInt(len); for (int i = 0; i < len; ++i) { stream.WriteInt(this.Data[i]); } } else { throw new NullReferenceException("Tag Name Null"); } }
internal override void WriteTag(NBTStream stream) { int len = this.Data.Length; if (this.Name != null) { stream.WriteByte((byte)this.TagType); stream.WriteString(this.Name); stream.WriteInt(len); stream.Reservation(len); stream.WriteBytes(this.Data); } else { throw new NullReferenceException("Tag Name Null"); } }
internal override void Write(NBTStream stream) { stream.WriteInt(this.Data); }