internal override void Write(NBTStream stream) { int len = this.Data.Length; stream.WriteInt(len); for (int i = 0; i < len; ++i) { stream.WriteLong(this.Data[i]); } }
internal override void Write(NBTStream stream) { int len = this.Data.Length; stream.WriteInt(len); stream.Reservation(len * sizeof(long)); for (int i = 0; i < len; ++i) { stream.WriteLong(this.Data[i]); } }
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.WriteLong(this.Data[i]); } } else { throw new NullReferenceException("Tag Name Null"); } }
internal override void Write(NBTStream stream) { stream.WriteLong(this.Data); }